changeset 831:b02a24ebf441

fixed iconview update after deletion of selected image
author nadvornik
date Sat, 14 Jun 2008 12:30:44 +0000
parents a06d885de883
children a14d7da2736d
files src/view_file_icon.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_icon.c	Sat Jun 14 06:52:52 2008 +0000
+++ b/src/view_file_icon.c	Sat Jun 14 12:30:44 2008 +0000
@@ -986,6 +986,7 @@
 		if (match >= 0)
 			{
 			vficon_select(vf, id);
+			vficon_send_layout_select(vf, id);
 			break;
 			}
 		}
@@ -2164,6 +2165,8 @@
 
 	filelist_free(new_filelist);
 
+	vficon_populate(vf, TRUE, keep_position);
+
 	if (selected && num_selected == 0)
 		{
 		/* all selected files disappeared */
@@ -2172,8 +2175,6 @@
 		
 	filelist_free(selected);
 
-	vficon_populate(vf, TRUE, keep_position);
-
 	/* attempt to keep focus on same icon when refreshing */
 	if (focus_id && g_list_find(vf->list, focus_id))
 		{