Qt: Fix build without extcap

Change-Id: Ibfcdb719408c0172ae78bf3b2761ff551ff6313c
Reviewed-on: https://code.wireshark.org/review/21461
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2017-05-02 14:36:00 +02:00
parent 798773b992
commit 527c31fdc9
1 changed files with 2 additions and 0 deletions

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