Author: colossus
Date: 2008-11-21 18:27:18 +0000 (Fri, 21 Nov 2008)
New Revision: 28880

Modified:
   xarchiver/trunk/src/open-with-dlg.c
Log:
Fixed bug #4618.


Modified: xarchiver/trunk/src/open-with-dlg.c
===================================================================
--- xarchiver/trunk/src/open-with-dlg.c 2008-11-21 16:00:16 UTC (rev 28879)
+++ xarchiver/trunk/src/open-with-dlg.c 2008-11-21 18:27:18 UTC (rev 28880)
@@ -289,11 +289,12 @@
        GtkTreeIter iter;
        GtkTreeModel *model;
 
-       gtk_tree_selection_get_selected(selection,&model,&iter);
-       gtk_tree_model_get(model,&iter,2,&exec,-1);
-       
-       gtk_entry_set_text(GTK_ENTRY(data->custom_command_entry),exec);
-       g_free(exec);
+       if (gtk_tree_selection_get_selected(selection,&model,&iter))
+       {
+               gtk_tree_model_get(model,&iter,2,&exec,-1);
+               gtk_entry_set_text(GTK_ENTRY(data->custom_command_entry),exec);
+               g_free(exec);
+       }
 }
 
 static void xa_open_with_dialog_custom_entry_activated(GtkEditable 
*entry,Open_with_data *data)

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to