aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-05-03 14:49:24 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2018-05-03 17:29:09 +0000
commit83b8c9c9886d3025c7e7559104d1302b84f32c3a (patch)
tree876b2f2e499fc57d1068a5b1b59f270cfdad7edd /ui/qt
parent869180ce7d3b84f8d23d2bdeb937a71458da47ea (diff)
Qt: Fix toolbar signal on start capture
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 <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/main_window.cpp2
1 files changed, 1 insertions, 1 deletions
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<InterfaceToolbar *> toolbars = findChildren<InterfaceToolbar *>();
foreach (InterfaceToolbar *toolbar, toolbars) {
- if (capture_in_progress && ifaces) {
+ if (capture_in_progress) {
toolbar->startCapture(ifaces);
} else {
toolbar->stopCapture();