Make sure on_actionCaptureOptions_triggered always exists so that we
don't get a "No such slot" warning when building without libpcap.
Change-Id: Ib7c82df6c72bf080ff080e0a650216b345a97e9c
Reviewed-on: https://code.wireshark.org/review/18747
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
void on_actionGoAutoScroll_toggled(bool checked);
void resetPreviousFocus();
-#ifdef HAVE_LIBPCAP
void on_actionCaptureOptions_triggered();
+#ifdef HAVE_LIBPCAP
void on_actionCaptureRefreshInterfaces_triggered();
#endif
void on_actionCaptureCaptureFilters_triggered();
phd->show();
}
-#ifdef HAVE_LIBPCAP
void MainWindow::on_actionCaptureOptions_triggered()
{
+#ifdef HAVE_LIBPCAP
if (!capture_interfaces_dialog_) {
capture_interfaces_dialog_ = new CaptureInterfacesDialog(this);
capture_interfaces_dialog_->raise();
capture_interfaces_dialog_->activateWindow();
+#endif
}
+#ifdef HAVE_LIBPCAP
void MainWindow::on_actionCaptureRefreshInterfaces_triggered()
{
main_ui_->actionCaptureRefreshInterfaces->setEnabled(false);