From 936f685af5e42b8faa01ae24aac6b71c47950b6f Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 13 Feb 2015 08:36:53 -0800 Subject: 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 --- ui/qt/proto_tree.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui/qt/proto_tree.cpp') 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(); 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)) { -- cgit v1.2.3