aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-01-14 23:28:35 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-01-14 23:28:35 +0000
commit3e1344fd4b5ede493ce4a1ae256d49fc71f5635c (patch)
tree289bdbd153f3562427e1ddbc6e2b6694e6b90f61 /gtk/main.c
parent7a9beb894559f54bb0ed97cd439b7f29665f5483 (diff)
fix #301: Windows file dialog should:
- initially show the "My Documents" folder - don't use the "open folder" preference setting on save and alike dialogs (we don't do it in the GTK versions either) svn path=/trunk/; revision=20433
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 63f8ce4999..71933666b7 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -2143,6 +2143,9 @@ main(int argc, char *argv[])
*/
init_plugin_dir();
+ /* Init the "Open file" dialog directory */
+ set_last_open_dir(get_persdatafile_dir());
+
/* initialize the funnel mini-api */
initialize_funnel_ops();
@@ -2948,9 +2951,7 @@ main(int argc, char *argv[])
good thing, given that "get_dirname()" does write over its
argument. */
s = get_dirname(cf_name);
- /* we might already set this from the recent file, don't overwrite this */
- if(get_last_open_dir() == NULL)
- set_last_open_dir(s);
+ set_last_open_dir(s);
g_free(cf_name);
cf_name = NULL;
} else {