aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-14 23:28:35 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-14 23:28:35 +0000
commit7cc804fc3448224606a091091bb536707ad90561 (patch)
tree289bdbd153f3562427e1ddbc6e2b6694e6b90f61 /gtk/main.c
parentdddfc162729be0b38e890da1ed2631b8bacbae57 (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) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20433 f5534014-38df-0310-8fa8-9805f1628bb7
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 {