aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-11-12 20:28:36 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2017-11-12 19:35:38 +0000
commitb5a1145cf15b51dc6d6a5614c5304cbe74cbf556 (patch)
tree02ba03269df8013eb0e9c330977e33c908a918a4 /ui
parente38c89d3a7aef37c404a616c493ca31c10a5afbb (diff)
Qt: Select correct packet from list
Change-Id: Id29d74506f7f009b7f14a86d8fc7c299711c4c2c Reviewed-on: https://code.wireshark.org/review/24393 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/packet_list.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index aa49d88275..393f2d457e 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -489,8 +489,7 @@ void PacketList::selectionChanged (const QItemSelection & selected, const QItemS
if (selected.isEmpty()) {
cf_unselect_packet(cap_file_);
} else {
- /* Framenumbers should allways reflect real frame numbers (can't start at 0) */
- row = selected.first().top() + 1;
+ row = selected.first().top();
cf_select_packet(cap_file_, row);
}