[file-roller/gnome-3-14] Extracting (by drag & drop) causes an error when the mouse is hovering Chromium



commit a18cdd2da3d6bc69223acc20b772c71dc9cda01f
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Feb 15 13:28:34 2015 +0100

    Extracting (by drag & drop) causes an error when the mouse is hovering Chromium
    
    [bug #735857]

 src/fr-window.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index f7492e9..4075792 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4515,10 +4515,15 @@ fr_window_file_list_drag_data_get (FrWindow         *window,
        g_return_val_if_fail (uri != NULL, FALSE);
 
        destination = g_file_new_for_uri (uri);
-       destination_folder = g_file_get_parent (destination);
+       if (destination == NULL)
+               return FALSE;
 
+       destination_folder = g_file_get_parent (destination);
        g_object_unref (destination);
 
+       if (destination_folder == NULL)
+               return FALSE;
+
        /* check whether the extraction can be performed in the destination
         * folder */
 


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