[file-roller] Extracting (by drag & drop) causes an error when the mouse is hovering Chromium
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Extracting (by drag & drop) causes an error when the mouse is hovering Chromium
- Date: Sun, 15 Feb 2015 12:29:09 +0000 (UTC)
commit af95f7d8db4e99e7c661022f77097c69b0becfe2
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 33a4046..1c5a323 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4513,10 +4513,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]