diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 8358db011d..5d6ace80c9 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -3615,12 +3615,14 @@ void MainWindow::on_actionCaptureStop_triggered() void MainWindow::on_actionCaptureRestart_triggered() { +#ifdef HAVE_LIBPCAP QString before_what(tr(" before restarting the capture")); cap_session_.capture_opts->restart = TRUE; if (!testCaptureFileClose(before_what, Restart)) return; startCapture(); +#endif // HAVE_LIBPCAP } void MainWindow::on_actionCaptureCaptureFilters_triggered()