forked from osmocom/wireshark
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:
parent
798773b992
commit
527c31fdc9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue