[file-roller/gnome-2-32] file-roller crashes when clicking Cancel in Add Files
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-2-32] file-roller crashes when clicking Cancel in Add Files
- Date: Wed, 6 Oct 2010 07:29:39 +0000 (UTC)
commit 3f04f8fee517cf0d2764031f1f04de5785531c89
Author: Brian Cameron <brian cameron oracle com>
Date: Wed Oct 6 09:28:52 2010 +0200
file-roller crashes when clicking Cancel in Add Files
[bug #631472]
src/dlg-add-files.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/dlg-add-files.c b/src/dlg-add-files.c
index 8e3aecc..47cbfef 100644
--- a/src/dlg-add-files.c
+++ b/src/dlg-add-files.c
@@ -64,7 +64,9 @@ file_sel_response_cb (GtkWidget *widget,
current_folder = gtk_file_chooser_get_current_folder_uri (file_sel);
uri = gtk_file_chooser_get_uri (file_sel);
eel_gconf_set_string (PREF_ADD_CURRENT_FOLDER, current_folder);
- eel_gconf_set_string (PREF_ADD_FILENAME, uri);
+ if (uri != NULL) {
+ eel_gconf_set_string (PREF_ADD_FILENAME, uri);
+ }
fr_window_set_add_default_dir (window, current_folder);
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]