From 7e843a9491ba040a2193f20de4088aa96f1b4653 Mon Sep 17 00:00:00 2001 From: Razvan Chitu Date: Sat, 5 Mar 2016 12:59:21 +0200 Subject: window: hide delete notification on undo In Nautilus, after a delete operation, an undo notification is shown to the user. If the operation is undone by other means (such as the Ctrl+Z shortcut), the notification is not automatically hidden, which can lead to an invalid undo operation. In order to fix this, hide the notification on an undo operation. Hide notification in the "undo-changed" signal handler. https://bugzilla.gnome.org/show_bug.cgi?id=761546 --- src/nautilus-window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nautilus-window.c b/src/nautilus-window.c index ce1d9aad0..f988bade4 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1624,7 +1624,9 @@ nautilus_window_on_undo_changed (NautilusFileUndoManager *manager, g_free (label); } g_list_free (files); - } + } else { + hide_notification_delete (window); + } } static void -- cgit v1.2.1