Fix for building without libpcap and extcap.

(A further fix should be "don't put the "Capture" section into the
welcome screen if we have neither libpcap nor extcap".)

Change-Id: I83e65e6dc31040292af7fe88ccd73e485613c76f
Reviewed-on: https://code.wireshark.org/review/22634
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-07-15 20:20:55 -07:00
parent 569b1d4468
commit 08e8a1ff1a
1 changed files with 2 additions and 0 deletions

View File

@ -917,6 +917,7 @@ void InterfaceToolbar::updateWidgets()
void InterfaceToolbar::interfaceListChanged()
{
#ifdef HAVE_LIBPCAP
const QString &selected_ifname = ui->interfacesComboBox->currentText();
bool keep_selected = false;
@ -950,6 +951,7 @@ void InterfaceToolbar::interfaceListChanged()
}
updateWidgets();
#endif
}
void InterfaceToolbar::on_interfacesComboBox_currentIndexChanged(const QString &ifname)