diff options
author | Dylan Ulis <daulis0@gmail.com> | 2020-01-11 13:54:39 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2020-01-12 22:33:42 +0000 |
commit | d5cfa99217197719b251cd01c5425f6614d344d3 (patch) | |
tree | e00d95aaf76c0a683489429004449e4b6bcac780 /ui/qt/packet_list.cpp | |
parent | f582c85623bbc4d9cc66564403d3500b9398e1e9 (diff) |
Allow Multiselection of packets to work during live captures
During live capture, the previous logic was to jump to row 1 when there is no
'current_frame'. When multiselect is active, there is no 'current_frame', so
it would always jump back to row 1, when >1 packet was selected.
Bug: 16293
Change-Id: Id1c9eb36fcae83f67ae342be6f9dfc1405ce7025
Reviewed-on: https://code.wireshark.org/review/35747
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/packet_list.cpp')
-rw-r--r-- | ui/qt/packet_list.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index 53b88ae23d..12c81d4861 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -203,6 +203,15 @@ packet_list_recent_write_all(FILE *rf) { gbl_cur_packet_list->writeRecent(rf); } +gboolean +packet_list_multi_select_active(void) +{ + if (gbl_cur_packet_list) { + return gbl_cur_packet_list->multiSelectActive(); + } + return FALSE; +} + #define MIN_COL_WIDTH_STR "MMMMMM" PacketList::PacketList(QWidget *parent) : |