Qt: Fix build without extcap
authorStig Bjørlykke <stig@bjorlykke.org>
Tue, 2 May 2017 12:36:00 +0000 (14:36 +0200)
committerStig Bjørlykke <stig@bjorlykke.org>
Tue, 2 May 2017 12:37:04 +0000 (12:37 +0000)
Change-Id: Ibfcdb719408c0172ae78bf3b2761ff551ff6313c
Reviewed-on: https://code.wireshark.org/review/21461
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
ui/qt/interface_toolbar.cpp

index dd178c91958bd2372418314d4f40100695d9609c..778b9aa19c2d4d2a0abf0ebcfbe5b33c45b24608 100644 (file)
@@ -725,6 +725,7 @@ void InterfaceToolbar::startCapture(GArray *ifaces)
     if (!ifaces || ifaces->len == 0)
         return;
 
+#ifdef HAVE_EXTCAP
     const QString &selected_ifname = ui->interfacesComboBox->currentText();
     QString first_capturing_ifname;
     bool selected_found = false;
@@ -762,6 +763,7 @@ void InterfaceToolbar::startCapture(GArray *ifaces)
         ui->interfacesComboBox->setCurrentText(first_capturing_ifname);
     else
         updateWidgets();
+#endif // HAVE_EXTCAP
 }
 
 void InterfaceToolbar::stopCapture()