From 83b8c9c9886d3025c7e7559104d1302b84f32c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 3 May 2018 14:49:24 +0200 Subject: Qt: Fix toolbar signal on start capture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Always call toolbar->startCapture() when starting a capture even if not having a list of interfaces. startCapture() will check for this. Change-Id: Ifb654f403c72e1d687ae1f6471fc955aa4f6f23c Ping-Bug: 14631 Reviewed-on: https://code.wireshark.org/review/27306 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/qt') diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index a0d71150b0..60df683ffc 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -2468,7 +2468,7 @@ void MainWindow::setForCaptureInProgress(bool capture_in_progress, GArray *iface QList toolbars = findChildren(); foreach (InterfaceToolbar *toolbar, toolbars) { - if (capture_in_progress && ifaces) { + if (capture_in_progress) { toolbar->startCapture(ifaces); } else { toolbar->stopCapture(); -- cgit v1.2.3