diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-09-17 23:59:50 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-09-17 23:59:50 +0000 |
commit | 9e338509f52b0005a8b56d090c81e9e886aa4bd3 (patch) | |
tree | 1bd7f89e88320afe19c2f22756ee331479180dcc /ui | |
parent | 3069f22bd1b84b56225e959a6e2ccbb09c53bdbe (diff) |
Restore set_last_open_dir. We need it on Windows.
svn path=/trunk/; revision=44957
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/qt_ui_utils.h | 1 | ||||
-rw-r--r-- | ui/qt/wireshark_application.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/qt_ui_utils.h b/ui/qt/qt_ui_utils.h index 4be2cf41be..5b2edd8e46 100644 --- a/ui/qt/qt_ui_utils.h +++ b/ui/qt/qt_ui_utils.h @@ -66,6 +66,7 @@ struct remote_host_t { }; // Referenced from ui/win32/file_dlg_win32.c and implemented in wireshark_application.cpp +extern void set_last_open_dir(const char *dirname); extern gboolean main_do_quit(void); #ifdef __cplusplus diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp index b5cddbdfb7..583da79d6c 100644 --- a/ui/qt/wireshark_application.cpp +++ b/ui/qt/wireshark_application.cpp @@ -54,6 +54,12 @@ get_last_open_dir(void) return last_open_dir; } +void +set_last_open_dir(const char *dirname) +{ + if (wsApp) wsApp->setLastOpenDir(dirname); +} + /* * Add the capture filename to the application-wide "Recent Files" list. * Contrary to the name this isn't limited to the "recent" menu. |