aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/main.cpp')
-rw-r--r--ui/qt/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index 19679a9bb6..c7e356d21e 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -811,7 +811,9 @@ int main(int argc, char *argv[])
/* Set the initial values in the capture options. This might be overwritten
by preference settings and then again by the command line parameters. */
- capture_opts_init(&global_capture_opts, &cfile);
+ capture_opts_init(&global_capture_opts);
+
+ capture_session_init(&global_capture_session, (void *)&cfile);
#endif
/* Register all dissectors; we must do this before checking for the