diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-07-15 20:20:55 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-07-16 03:21:27 +0000 |
commit | 08e8a1ff1a33a5c0d4d81859cbd594399c8076b0 (patch) | |
tree | 1d6ea985e643da16b187dee03d8bc70a7c475b9e /ui/qt | |
parent | 569b1d44680f155b1493c50b13383ddcc294c2c0 (diff) |
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>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/interface_toolbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/interface_toolbar.cpp b/ui/qt/interface_toolbar.cpp index b7bdaadbba..7d651501fb 100644 --- a/ui/qt/interface_toolbar.cpp +++ b/ui/qt/interface_toolbar.cpp @@ -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) |