changeset 1650:c16f499ea1ce

made file_util_start_editor_from_file consider also sidecars
author nadvornik
date Wed, 17 Jun 2009 18:41:10 +0000
parents 82de367f2d72
children 8966e72ae99a
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
@@ -2180,7 +2180,13 @@
 	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;