diff options
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r-- | ui/qt/main_window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 78f062a2b3..519bbacabd 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -246,10 +246,12 @@ simple_message_box(ESD_TYPE_E type, gboolean *notagain, void vsimple_error_message_box(const char *msg_format, va_list ap) { +#ifdef HAVE_LIBPCAP // We want to quit after reading the capture file, hence // we don't actually open the error dialog. - if (global_capture_opts.quit_after_cap) + if (quit_after_cap) exit(0); +#endif SimpleDialog sd(gbl_cur_main_window_, ESD_TYPE_ERROR, ESD_BTN_OK, msg_format, ap); sd.exec(); |