ecfc91a
diff -pur xarchiver-0.5.2/src/open-with-dlg.c xarchiver-0.5.2.new/src/open-with-dlg.c
ecfc91a
--- xarchiver-0.5.2/src/open-with-dlg.c	2008-10-17 14:06:03.000000000 +0200
ecfc91a
+++ xarchiver-0.5.2.new/src/open-with-dlg.c	2011-05-16 21:48:49.042839556 +0200
ecfc91a
@@ -289,7 +289,10 @@ static void xa_open_with_dialog_selectio
ecfc91a
 	GtkTreeIter iter;
ecfc91a
 	GtkTreeModel *model;
ecfc91a
 
ecfc91a
-	gtk_tree_selection_get_selected(selection,&model,&iter);
ecfc91a
+	if (!gtk_tree_selection_get_selected(selection,&model,&iter)) {
ecfc91a
+		return;
ecfc91a
+	}
ecfc91a
+
ecfc91a
 	gtk_tree_model_get(model,&iter,2,&exec,-1);
ecfc91a
 	
ecfc91a
 	gtk_entry_set_text(GTK_ENTRY(data->custom_command_entry),exec);