diff src/utilops.c @ 1581:c9c1a16ff8ae

allow external editors without parameters, as long as they are in category 'X-Geeqie'
author nadvornik
date Fri, 01 May 2009 09:49:27 +0000
parents ee2b66a09a03
children 249b539cc952
line wrap: on
line diff
--- a/src/utilops.c	Wed Apr 29 20:28:54 2009 +0000
+++ b/src/utilops.c	Fri May 01 09:49:27 2009 +0000
@@ -2130,7 +2130,16 @@
 static void file_util_start_editor_full(const gchar *key, FileData *source_fd, GList *source_list, const gchar *dest_path, GtkWidget *parent, UtilityPhase phase)
 {
 	UtilityData *ud;
-	GList *flist = filelist_copy(source_list);
+	GList *flist;
+	
+	if (editor_no_param(key))
+		{
+		/* just start the editor, don't care about files */
+		start_editor(key);
+		return;
+		}
+	
+	flist = filelist_copy(source_list);
 	
 	if (source_fd)
 		flist = g_list_append(flist, file_data_ref(source_fd));