diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2007-01-14 23:28:35 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2007-01-14 23:28:35 +0000 |
commit | 3e1344fd4b5ede493ce4a1ae256d49fc71f5635c (patch) | |
tree | 289bdbd153f3562427e1ddbc6e2b6694e6b90f61 /gtk/main.c | |
parent | 7a9beb894559f54bb0ed97cd439b7f29665f5483 (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.c | 7 |
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 { |