summaryrefslogtreecommitdiff
path: root/ui/qt/main_window_slots.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-09-16 20:32:04 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2016-09-16 21:27:34 +0000
commitee2c4da947a6e7ae638efa464d9eb09c9082fa00 (patch)
tree7dfa55251e4aeca7f8e3a48119b7c3a4e7f30cfe /ui/qt/main_window_slots.cpp
parent686d72fc7d8a71f63a51f02cee08d269e55cdb81 (diff)
downloadwireshark-ee2c4da947a6e7ae638efa464d9eb09c9082fa00.tar.gz
Qt: Reset expert info icon when start capture failed
When starting capture fails the expert info icon must be removed and the file status must be cleared. This happens more frequently when using sshdump with configuration errors. Change-Id: I9b2215c71bd16406a0978256018b1664f06c19f1 Reviewed-on: https://code.wireshark.org/review/17741 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r--ui/qt/main_window_slots.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index 7da031d92a..ea3e05b5f2 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -671,6 +671,10 @@ void MainWindow::captureCaptureFailed(capture_session *) {
setForCaptureInProgress(false);
main_ui_->mainStack->setCurrentWidget(main_welcome_);
+ // Reset expert information indicator
+ main_ui_->statusBar->captureFileClosing();
+ main_ui_->statusBar->popFileStatus();
+
setWindowIcon(wsApp->normalIcon());
if (global_commandline_info.quit_after_cap) {
@@ -777,7 +781,6 @@ void MainWindow::captureFileClosed() {
// Reset expert information indicator
main_ui_->statusBar->captureFileClosing();
-
main_ui_->statusBar->popFileStatus();
setWSWindowTitle();