aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/qt_ui_utils.h1
-rw-r--r--ui/qt/wireshark_application.cpp6
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.