[file-roller] Adding file to archive, file-roller doesn't load location correctly
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Adding file to archive, file-roller doesn't load location correctly
- Date: Thu, 27 Sep 2012 18:33:11 +0000 (UTC)
commit 1c4d7016f83088591625a4b8ab457ffd1b6ffcc6
Author: Mitsuya Shibata <mty shibata gmail com>
Date: Thu Sep 27 20:31:26 2012 +0200
Adding file to archive, file-roller doesn't load location correctly
src/dlg-add.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dlg-add.c b/src/dlg-add.c
index 8e6cb9a..547c046 100644
--- a/src/dlg-add.c
+++ b/src/dlg-add.c
@@ -412,12 +412,13 @@ dlg_add_folder_load_last_options (DialogData *data)
char *exclude_folders = NULL;
gboolean update;
gboolean no_follow_symlinks;
- GFile *folder;
+ GFile *folder = NULL;
int i;
base_dir = g_settings_get_string (data->settings, PREF_ADD_CURRENT_FOLDER);
uris = g_settings_get_strv (data->settings, PREF_ADD_SELECTED_FILES);
- folder = g_file_new_for_uri (base_dir);
+ if (g_strcmp0 (base_dir, "") != 0)
+ folder = g_file_new_for_uri (base_dir);
include_files = g_settings_get_string (data->settings, PREF_ADD_INCLUDE_FILES);
exclude_files = g_settings_get_string (data->settings, PREF_ADD_EXCLUDE_FILES);
exclude_folders = g_settings_get_string (data->settings, PREF_ADD_EXCLUDE_FOLDERS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]