[PATCH] Don't break keynav after deletion failed



We have means in FMDirectoryView to prevent multiple deletions from
being triggered while another still hasn't finished, which is
implemented using the selection_was_removed flag. This flag isn't reset
after deletion if the selection doesn't change, which is the case if the
deletion failed.

Proposed patch attached which fixes bug 318723 [1].

[1] http://bugzilla.gnome.org/show_bug.cgi?id=318723

-- 
Christian Neumair <chris gnome-de org>
Index: src/file-manager/fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.711
diff -u -p -r1.711 fm-directory-view.c
--- src/file-manager/fm-directory-view.c	27 Sep 2005 08:34:37 -0000	1.711
+++ src/file-manager/fm-directory-view.c	13 Oct 2005 11:05:56 -0000
@@ -2266,6 +2280,10 @@ copy_move_done_callback (GHashTable *deb
 				fm_directory_view_set_selection (directory_view,
 								 debuting_uri_data->added_files);
 				fm_directory_view_reveal_selection (directory_view);
+			} else {
+				/* fm_directory_view_notify_selection_changed won't be invoked, so
+				 * we manually set this to FALSE */
+				directory_view->details->selection_was_removed = FALSE;
 			}
 			debuting_uri_data_free (debuting_uri_data);
 		} else {

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]