From 527c31fdc986bff555cd6b8ecacc586265bb1469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 2 May 2017 14:36:00 +0200 Subject: Qt: Fix build without extcap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibfcdb719408c0172ae78bf3b2761ff551ff6313c Reviewed-on: https://code.wireshark.org/review/21461 Reviewed-by: Stig Bjørlykke --- ui/qt/interface_toolbar.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/qt/interface_toolbar.cpp b/ui/qt/interface_toolbar.cpp index dd178c9195..778b9aa19c 100644 --- a/ui/qt/interface_toolbar.cpp +++ b/ui/qt/interface_toolbar.cpp @@ -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() -- cgit v1.2.1