diff options
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r-- | ui/qt/main_window.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index b4e660c1de..65dd7a12fa 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -226,6 +226,9 @@ MainWindow::MainWindow(QWidget *parent) : freeze_focus_(NULL), capture_stopping_(false), capture_filter_valid_(false), +#ifdef HAVE_LIBPCAP + info_data_(), +#endif #ifdef _WIN32 pipe_timer_(NULL) #else @@ -612,11 +615,6 @@ MainWindow::MainWindow(QWidget *parent) : plugin_if_register_gui_cb(PLUGIN_IF_PREFERENCE_SAVE, plugin_if_mainwindow_preference); plugin_if_register_gui_cb(PLUGIN_IF_GOTO_FRAME, plugin_if_mainwindow_gotoframe); -#ifdef HAVE_LIBPCAP - /* Initialize packet counter */ - info_data_.counts.counts_hash = NULL; -#endif - main_ui_->mainStack->setCurrentWidget(main_welcome_); } |