Qt: when a capture file is closed, go back to the welcome screen only
authorMartin Kaiser <wireshark@kaiser.cx>
Thu, 25 Jun 2015 21:32:30 +0000 (14:32 -0700)
committerMartin Kaiser <wireshark@kaiser.cx>
Thu, 25 Jun 2015 21:59:53 +0000 (21:59 +0000)
if we're not capturing to multiple files

Change-Id: I18d36ef8e7e3525b2bd8d94f2b2349cefa3ecb52
Reviewed-on: https://code.wireshark.org/review/9161
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
ui/qt/main_window_slots.cpp

index 9baa557eac23b72c8723355908d43458f4d470c3..c44745e54e066093395cf27046a3aadf039c8ea3 100644 (file)
@@ -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)