Qt: Don't update expert icon without a capture file.
authorStig Bjørlykke <stig@bjorlykke.org>
Wed, 18 Nov 2015 07:48:50 +0000 (08:48 +0100)
committerStig Bjørlykke <stig@bjorlykke.org>
Wed, 18 Nov 2015 16:36:21 +0000 (16:36 +0000)
We don't show the expert info icon when not having a capture file,
so this should not be enabled when emitting redissectPackets().

Change-Id: I6ae6124ed9f69c214a2beadbdc670b15dfe3d060
Reviewed-on: https://code.wireshark.org/review/11937
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
ui/qt/main_window_slots.cpp

index d7e53bba67a7c229d905031f789c38b4fe7b5c27..689feaee22818da931629f96a648fb1f190ba67f 100644 (file)
@@ -1336,9 +1336,10 @@ void MainWindow::startInterfaceCapture(bool valid)
 
 void MainWindow::redissectPackets()
 {
-    if (capture_file_.capFile())
+    if (capture_file_.capFile()) {
         cf_redissect_packets(capture_file_.capFile());
-    main_ui_->statusBar->expertUpdate();
+        main_ui_->statusBar->expertUpdate();
+    }
 
     proto_free_deregistered_fields();
 }