diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-11-16 11:05:24 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-17 07:35:14 +0000 |
commit | d3f68e576677d46426af398f5a66499ac3f99e46 (patch) | |
tree | 773390d0695ff93ec9fb60d307dbe2a4e5e0eca0 | |
parent | 062e5b3118de4c4658f4379d3e84f273e3976a97 (diff) |
Qt: avoid crash when use Go Next/Previous Conversation
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 <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r-- | ui/qt/main_window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |