aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-31 16:52:37 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-01 01:07:23 +0000
commit1afe288c8c1a750e695ea09c26d3995332e217c9 (patch)
treedc61216d257fbfb3f26b0adb5fe0bd2addd0f0d4 /ui/qt/proto_tree.cpp
parentc8fec28f2ccc5f7089f4e40c5dc6f09831e786c2 (diff)
More packet detail context menu items.
Add the wiki and field reference items to the packet detail context menu. Add the "Go To Linked Packet" item in the Go menu and packet detail context menu. Use "Linked Packet" instead of "Packet Reference" and "Corresponding Packet". Remove more pending item comments. Change-Id: I66c40f71738f0996690f4818a546520ea0747088 Reviewed-on: https://code.wireshark.org/review/9841 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/proto_tree.cpp')
-rw-r--r--ui/qt/proto_tree.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index 898ec709ff..cad994d046 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -245,16 +245,18 @@ ProtoTree::ProtoTree(QWidget *parent) :
ctx_menu_.addSeparator();
-// " <menuitem name='WikiProtocolPage' action='/WikiProtocolPage'/>\n"
-// " <menuitem name='FilterFieldReference' action='/FilterFieldReference'/>\n"
+ action = window()->findChild<QAction *>("actionContextWikiProtocolPage");
+ ctx_menu_.addAction(action);
+ action = window()->findChild<QAction *>("actionContextFilterFieldReference");
+ ctx_menu_.addAction(action);
// " <menuitem name='ProtocolHelp' action='/ProtocolHelp'/>\n"
ctx_menu_.addMenu(&proto_prefs_menu_);
ctx_menu_.addSeparator();
decode_as_ = window()->findChild<QAction *>("actionAnalyzeDecodeAs");
ctx_menu_.addAction(decode_as_);
// " <menuitem name='ResolveName' action='/ResolveName'/>\n"
-// " <menuitem name='GotoCorrespondingPacket' action='/GotoCorrespondingPacket'/>\n"
- ctx_menu_.addAction(window()->findChild<QAction *>("actionViewShowPacketReferenceInNewWindow"));
+ ctx_menu_.addAction(window()->findChild<QAction *>("actionGoGoToLinkedPacket"));
+ ctx_menu_.addAction(window()->findChild<QAction *>("actionContextShowLinkedPacketInNewWindow"));
} else {
ctx_menu_.clear();
}