diff options
-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); |