Qt: fix compilation without pcap on gcc-8 and clang-7.

Change-Id: Ica9793ed9da2332f70cfb783dad8200340be34bf
Reviewed-on: https://code.wireshark.org/review/32119
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Dario Lombardo 2019-02-20 10:10:48 +01:00 committed by Stig Bjørlykke
parent ed62685b86
commit d2e9b5b8e5
1 changed files with 2 additions and 0 deletions

View File

@ -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()