made file_util_start_editor_from_file consider also sidecars
authorVladimir Nadvornik <nadvornik@suse.cz>
Wed, 17 Jun 2009 18:41:10 +0000 (18:41 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Wed, 17 Jun 2009 18:41:10 +0000 (18:41 +0000)
src/utilops.c

index 19ca451..5114fb5 100644 (file)
@@ -2180,7 +2180,13 @@ static void file_util_start_editor_full(const gchar *key, FileData *source_fd, G
        flist = filelist_copy(source_list);
        
        if (source_fd)
+               {
+               /* flist is most probably NULL
+                  operate on source_fd and it's sidecars
+               */
+               flist = g_list_concat(filelist_copy(source_fd->sidecar_files), flist);
                flist = g_list_append(flist, file_data_ref(source_fd));
+               }
 
        if (!flist) return;