aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-13 08:36:53 -0800
committerGerald Combs <gerald@wireshark.org>2015-02-13 17:30:26 +0000
commit936f685af5e42b8faa01ae24aac6b71c47950b6f (patch)
tree166a628914ae37072336810e6c2254cba2665676 /ui/qt/proto_tree.cpp
parent4d5bdf4256cc723db5e55d1c49eca187b47186aa (diff)
Qt: Allow shift-double-clicking on a frame link.
You can open a new packet window in the GTK+ UI by holding down the shift key and double-clicking on a frame link in the protocol tree. Add this behavior to the Qt UI. Document the different ways of opening a new packet window and update the image. Change-Id: I55caf6cc8089a6c305fafd47b4870e7c69dbfb10 Reviewed-on: https://code.wireshark.org/review/7101 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r--ui/qt/proto_tree.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index 2fa24e39af..8b40452c6b 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -455,7 +455,11 @@ void ProtoTree::itemDoubleClick(QTreeWidgetItem *item, int column) {
fi = item->data(0, Qt::UserRole).value<field_info *>();
if(fi->hfinfo->type == FT_FRAMENUM) {
- emit goToFrame(fi->value.value.uinteger);
+ if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) {
+ emit openPacketInNewWindow(true);
+ } else {
+ emit goToPacket(fi->value.value.uinteger);
+ }
}
if(FI_GET_FLAG(fi, FI_URL) && IS_FT_STRING(fi->hfinfo->type)) {