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 <pascal.quantin@gmail.com>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
Martin Kaiser 2015-06-25 14:32:30 -07:00
parent b89a4858bb
commit 6122b4b616
1 changed files with 3 additions and 2 deletions

View 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)