aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2015-07-23 18:39:30 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-24 01:40:54 +0000
commitdb82d0f394d588ac4416a4c91cb4912a18cfb25c (patch)
tree114df294811ccbfa4f3eddad5a404b3e79011aa4 /ui
parent963b0c919e8dbe34dfedc30ee5d6f712e11ff558 (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')
-rw-r--r--ui/qt/proto_tree.cpp4
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"));