diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2021-10-01 10:31:30 +0200 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-10-01 17:16:13 +0000 |
commit | ec2746c910059169fa528466e8187643105ba56d (patch) | |
tree | 6cae4e4b77ea235e066f06b1e2eb276051fd4b13 /ui/qt/capture_info_dialog.cpp | |
parent | c7dc907d0e31d801d2b51aea871aace6df0c0c05 (diff) |
capture: Check for valid wtap when capture.show_info
Changing profile during capture may change the capture_opts->show_info
setting. Always init cap_session->wtap and check if valid before doing
capture_info_new_packets(). Always close dialog and cap_session->wtap
in capture_input_closed().
This will not bring up the Capture Information dialog when switching
to a profile having this enabled.
Fixes #17622
Diffstat (limited to 'ui/qt/capture_info_dialog.cpp')
-rw-r--r-- | ui/qt/capture_info_dialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/capture_info_dialog.cpp b/ui/qt/capture_info_dialog.cpp index fdba3a870f..8c4ef8a8de 100644 --- a/ui/qt/capture_info_dialog.cpp +++ b/ui/qt/capture_info_dialog.cpp @@ -78,6 +78,7 @@ capture_info *cinfo) { CaptureInfoDialog *ci_dlg = qobject_cast<CaptureInfoDialog *>((QObject *)cinfo->ui); if (!ci_dlg) return; + cinfo->ui = NULL; delete ci_dlg; } |