diff options
author | Gerald Combs <gerald@zing.org> | 2015-07-23 18:39:30 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-07-24 01:40:54 +0000 |
commit | db82d0f394d588ac4416a4c91cb4912a18cfb25c (patch) | |
tree | 114df294811ccbfa4f3eddad5a404b3e79011aa4 /ui/qt/proto_tree.cpp | |
parent | 963b0c919e8dbe34dfedc30ee5d6f712e11ff558 (diff) |
Fix the Copy menu placement in the ProtoTree context menu.
Change-Id: I8e967000b769918af2c0fb3dae22b3d36be07647
Reviewed-on: https://code.wireshark.org/review/9765
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r-- | ui/qt/proto_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 2a9a86ccc7..8360725037 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -222,8 +222,8 @@ ProtoTree::ProtoTree(QWidget *parent) : ctx_menu_.addSeparator(); action = window()->findChild<QAction *>("actionCopy"); - subsubmenu = new QMenu(action->text()); - submenu->addMenu(subsubmenu); + submenu = new QMenu(action->text()); + ctx_menu_.addMenu(submenu); submenu->addAction(window()->findChild<QAction *>("actionCopyAllVisibleItems")); submenu->addAction(window()->findChild<QAction *>("actionCopyAllVisibleSelectedTreeItems")); submenu->addAction(window()->findChild<QAction *>("actionEditCopyDescription")); |