summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-01-27 21:20:51 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2017-01-27 20:24:54 +0000
commit990b5dc14c41fc3be69f9f8894f73d375d0d7db9 (patch)
tree126ff0cda4b53ce1cf558cdab14a7f74d1f81a9f
parent26d930f147f55945febabf450d8077fbf7565a67 (diff)
downloadwireshark-990b5dc14c41fc3be69f9f8894f73d375d0d7db9.tar.gz
Qt: Add exported packet files to the recent files
Update the recent files list when exporting specified packets to file. Change-Id: I4e7dd7f943aa99ab9d5f3fd88444d730434970e9 Reviewed-on: https://code.wireshark.org/review/19818 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r--ui/qt/main_window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index b13e89480d..9e33774057 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -1524,6 +1524,8 @@ void MainWindow::exportSelectedPackets() {
any packets that no longer have comments. */
if (discard_comments)
packet_list_queue_draw();
+ /* Add this filename to the list of recent files in the "Recent Files" submenu */
+ add_menu_recent_capture_file(file_name.toUtf8().constData());
return;
case CF_WRITE_ERROR: