aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-08-17 20:30:01 -0400
committerMichael Mann <mmann78@netscape.net>2017-09-12 11:32:02 +0000
commitb4d8b68d7c9c0e3280a204dcfca9b57e66bffddd (patch)
tree402d17ead7501a7b815140dbf4c18e4b2d92c052 /ui
parentc2057c08f8ecd29faead6a99217228da421de91b (diff)
Fix: Segfault when "Update list of packets in real time" is unchecked
capture_file structure is not populated with "fixed" captures. Qt menu presumes it has a populated capture_file structure. Just have menu items be disabled until capture file is reloaded for display. Bug: 13024 Change-Id: I9dfb5355c5d421f5344f97e1e9d5b4dd08b11c6e Reviewed-on: https://code.wireshark.org/review/23095 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/main_window_slots.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index ac0b5a078b..0f64ea9120 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -724,7 +724,10 @@ void MainWindow::captureCaptureFixedFinished(capture_session *) {
/* Enable menu items that make sense if you're not currently running
a capture. */
setForCaptureInProgress(false);
- setMenusForCaptureFile();
+ /* There isn't a real capture_file structure yet, so just force disabling
+ menu options. They will "refresh" when the capture file is reloaded to
+ display packets */
+ setMenusForCaptureFile(true);
setWindowIcon(wsApp->normalIcon());