diff options
author | Razvan Chitu <razvan.ch95@gmail.com> | 2016-03-05 12:59:21 +0200 |
---|---|---|
committer | Razvan Chitu <razvan.ch95@gmail.com> | 2016-03-07 12:49:58 +0200 |
commit | 7e843a9491ba040a2193f20de4088aa96f1b4653 (patch) | |
tree | 295ef1dd011922d15c8d7a0591a7482f789f6130 | |
parent | 0f74a97ba828b7a8f34db07ee50339dede95ef87 (diff) | |
download | nautilus-7e843a9491ba040a2193f20de4088aa96f1b4653.tar.gz |
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
-rw-r--r-- | src/nautilus-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |