[nautilus] window: hide delete notification on undo



commit d304c8a359ddcc2ad2db7732126128bb47138c81
Author: Razvan Chitu <razvan ch95 gmail com>
Date:   Sat Mar 5 12:59:21 2016 +0200

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index ce1d9aa..f988bad 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


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