From 951d872831139ceca30860c521ce2e5eec571e39 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Fri, 19 Jul 2019 16:10:15 +0800 Subject: [PATCH] PropertyEditor: fix bug when constructing context menu --- src/Gui/propertyeditor/PropertyEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyEditor.cpp b/src/Gui/propertyeditor/PropertyEditor.cpp index c20717add6..9cade63ee5 100644 --- a/src/Gui/propertyeditor/PropertyEditor.cpp +++ b/src/Gui/propertyeditor/PropertyEditor.cpp @@ -450,7 +450,7 @@ void PropertyEditor::contextMenuEvent(QContextMenuEvent *) { auto item = static_cast(index.internalPointer()); if(item->isSeparator()) continue; - for(auto parent=item;parent;parent=item->parent()) { + for(auto parent=item;parent;parent=parent->parent()) { const auto &ps = parent->getPropertyData(); if(ps.size()) { props.insert(ps.begin(),ps.end());