From d3f68e576677d46426af398f5a66499ac3f99e46 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 16 Nov 2015 11:05:24 +0100 Subject: [PATCH] Qt: avoid crash when use Go Next/Previous Conversation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only enable this menu when there is a packet Change-Id: I750f2af6e9f565afce83a5e84394cc96b3b071f9 Reviewed-on: https://code.wireshark.org/review/11868 Reviewed-by: Alexis La Goutte Petri-Dish: Alexis La Goutte Reviewed-by: Pascal Quantin Reviewed-by: Stig Bjørlykke --- ui/qt/main_window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 37a69c7af8..124a1e3f70 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -2024,6 +2024,8 @@ void MainWindow::setForCapturedPackets(bool have_captured_packets) main_ui_->actionGoNextPacket->setEnabled(have_captured_packets); main_ui_->actionGoFirstPacket->setEnabled(have_captured_packets); main_ui_->actionGoLastPacket->setEnabled(have_captured_packets); + main_ui_->actionGoNextConversationPacket->setEnabled(have_captured_packets); + main_ui_->actionGoPreviousConversationPacket->setEnabled(have_captured_packets); main_ui_->actionViewZoomIn->setEnabled(have_captured_packets); main_ui_->actionViewZoomOut->setEnabled(have_captured_packets);