From 6122b4b61608e60b5636bec2bb0466de5aa825a3 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Thu, 25 Jun 2015 14:32:30 -0700 Subject: [PATCH] Qt: when a capture file is closed, go back to the welcome screen only if we're not capturing to multiple files Change-Id: I18d36ef8e7e3525b2bd8d94f2b2349cefa3ecb52 Reviewed-on: https://code.wireshark.org/review/9161 Reviewed-by: Pascal Quantin Reviewed-by: Martin Kaiser --- ui/qt/main_window_slots.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 9baa557eac..c44745e54e 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -686,10 +686,11 @@ void MainWindow::captureFileClosed() { main_ui_->statusBar->popFileStatus(); - main_ui_->mainStack->setCurrentWidget(main_welcome_); - setTitlebarForSelectedTreeRow(); setMenusForSelectedTreeRow(); + + if (!global_capture_opts.multi_files_on) + main_ui_->mainStack->setCurrentWidget(main_welcome_); } void MainWindow::captureFileSaveStarted(const QString &file_path)