changeset 1644:5d66965165f2

made file_util_start_editor_from_file consider also sidecars
author nadvornik
date Wed, 17 Jun 2009 18:41:10 +0000
parents 704ab52b3ac5
children 8efd65465de5
files src/utilops.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/utilops.c	Wed Jun 17 18:19:11 2009 +0000
+++ b/src/utilops.c	Wed Jun 17 18:41:10 2009 +0000
@@ -2136,7 +2136,13 @@
 	GList *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;