[nautilus] general: Fix the error dialog not showing



commit 569c1acecbe01815a98cd42cfca5a4840b0e2754
Author: George Mocanu <mocanu geo98 gmail com>
Date:   Sun May 20 12:09:48 2018 +0300

    general: Fix the error dialog not showing
    
    Since commit c1bb594d, a dialog error wouldn't be shown if
    there was an error when renaming a file or setting permissions
    to a file.
    
    The user should be informed through a error dialog if something
    went wrong in the above-mentioned use-cases.
    
    This patch solves the issue by using the parent, instead of NULL.
    
    Closes #705

 src/nautilus-mime-actions.c      | 2 +-
 src/nautilus-properties-window.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index baa22f37f..252dfea81 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -2125,7 +2125,7 @@ activation_mountable_started (NautilusFile *file,
         {
             show_dialog (_("Unable to start location"),
                          error->message,
-                         NULL,
+                         parameters->parent_window,
                          GTK_MESSAGE_ERROR);
         }
 
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index a809554c9..bf19263d0 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -3406,7 +3406,7 @@ permission_change_callback (NautilusFile *file,
     end_long_operation (window);
 
     /* Report the error if it's an error. */
-    nautilus_report_error_setting_permissions (file, error, NULL);
+    nautilus_report_error_setting_permissions (file, error, GTK_WINDOW (window));
 
     g_object_unref (window);
 }


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