Qt: Don't update expert icon without a capture file.

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>
This commit is contained in:
Stig Bjørlykke 2015-11-18 08:48:50 +01:00
parent 4adeb424f5
commit 73ee917841
1 changed files with 3 additions and 2 deletions

View 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();
}