diff options
author | Steve Zesch <[email protected]> | 2012-11-17 15:59:12 -0500 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-17 15:59:12 -0500 |
commit | e6dca8b9f292702254792bac10fcc2904457bae6 (patch) | |
tree | 813563ff0c7ad145350e4f00e8f5f25f158660ca | |
parent | 35d6ad55bcc7f23aea34e88d63c67fee381b8b45 (diff) | |
download | engrampa-e6dca8b9f292702254792bac10fcc2904457bae6.tar.bz2 engrampa-e6dca8b9f292702254792bac10fcc2904457bae6.tar.xz |
file-roller crashes when clicking Cancel in Add Files
-rw-r--r-- | src/dlg-add-files.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dlg-add-files.c b/src/dlg-add-files.c index 6de4e57..7ece634 100644 --- a/src/dlg-add-files.c +++ b/src/dlg-add-files.c @@ -65,7 +65,12 @@ 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); g_settings_set_string (data->settings, PREF_ADD_CURRENT_FOLDER, current_folder); - g_settings_set_string (data->settings, PREF_ADD_FILENAME, uri); + + if (uri != NULL) + { + g_settings_set_string (data->settings, PREF_ADD_FILENAME, uri); + } + fr_window_set_add_default_dir (window, current_folder); g_free (uri); |