forked from osmocom/wireshark
Qt: fix build without libpcap and without extcap
global_capture_opts is only defined when libpcap or extcap are enabled. Change-Id: If692a7ac365b77d9efc52f589fef1aa906d5d14e Fixes: v2.5.0rc0-425-ge036f4a282 ("Qt: Main Welcome behavior tweaks.") Reviewed-on: https://code.wireshark.org/review/22629 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
e036f4a282
commit
569b1d4468
|
@ -269,16 +269,20 @@ void MainWelcome::appInitialized()
|
|||
|
||||
welcome_ui_->captureFilterComboBox->setEnabled(true);
|
||||
|
||||
#ifdef HAVE_LIBPCAP
|
||||
QString capture_device = prefs.capture_device;
|
||||
if (!capture_device.isEmpty()) {
|
||||
capture_opts_default_iface_if_necessary(&global_capture_opts, prefs.capture_device);
|
||||
}
|
||||
#endif // HAVE_LIBPCAP
|
||||
|
||||
interfaceListChanged();
|
||||
|
||||
#ifdef HAVE_LIBPCAP
|
||||
if (global_capture_opts.num_selected > 0) {
|
||||
welcome_ui_->interfaceFrame->setTreeFocus();
|
||||
}
|
||||
#endif // HAVE_LIBPCAP
|
||||
|
||||
delete splash_overlay_;
|
||||
splash_overlay_ = NULL;
|
||||
|
|
Loading…
Reference in New Issue