From 990b5dc14c41fc3be69f9f8894f73d375d0d7db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 27 Jan 2017 21:20:51 +0100 Subject: Qt: Add exported packet files to the recent files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ui/qt/main_window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/qt/main_window.cpp') 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: -- cgit v1.2.1