summaryrefslogtreecommitdiff
path: root/ui/qt/sequence_diagram.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-05-27 13:00:31 -0700
committerGerald Combs <gerald@wireshark.org>2016-05-27 21:12:51 +0000
commit80ce7f0d5cc1c49b997524c3fe11a51499e8df4d (patch)
tree4f53c9114ad6a865864c9bc9a7770d69b49f9f50 /ui/qt/sequence_diagram.cpp
parentdfc545d8f2e3c8bf5547d738884f34d10bc85cfc (diff)
downloadwireshark-80ce7f0d5cc1c49b997524c3fe11a51499e8df4d.tar.gz
Qt: Sequence dialog navigation updates.
Clean up the next / previous logic a bit. If the selected item is out of range, move it in-range. Change-Id: Idd5f83e7f4ccf960500f261e1c2292da6cecab57 Reviewed-on: https://code.wireshark.org/review/15591 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/sequence_diagram.cpp')
-rw-r--r--ui/qt/sequence_diagram.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/sequence_diagram.cpp b/ui/qt/sequence_diagram.cpp
index 57702ad098..5e625e114d 100644
--- a/ui/qt/sequence_diagram.cpp
+++ b/ui/qt/sequence_diagram.cpp
@@ -118,6 +118,7 @@ int SequenceDiagram::adjacentPacket(bool next)
it = data_->constEnd();
--it;
}
+ selected_key_ = it.value().key;
return it.value().value->frame_number;
}