[PATCH] Ask for confirmation when deleting through location button context menu



Files as bug 321584 [1], quiet major.

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

-- 
Christian Neumair <chris gnome-de org>
Index: file-manager/fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.718
diff -u -p -r1.718 fm-directory-view.c
--- file-manager/fm-directory-view.c	14 Nov 2005 14:56:12 -0000	1.718
+++ file-manager/fm-directory-view.c	16 Nov 2005 18:45:35 -0000
@@ -6125,7 +6127,9 @@ action_location_delete_callback (GtkActi
 	file_uri = nautilus_file_get_uri (file);
 
 	files = g_list_append (NULL, file_uri);
-	nautilus_file_operations_delete (files, GTK_WIDGET (view));
+	if (confirm_delete_directly (view, files)) {
+		nautilus_file_operations_delete (files, GTK_WIDGET (view));
+	}
 
 	g_free (file_uri);
 	g_list_free (files);

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]