Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PropertyEditor: fix bug when constructing context menu
  • Loading branch information
realthunder authored and wwmayer committed Aug 17, 2019
1 parent 673d035 commit 088c282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/propertyeditor/PropertyEditor.cpp
Expand Up @@ -450,7 +450,7 @@ void PropertyEditor::contextMenuEvent(QContextMenuEvent *) {
auto item = static_cast<PropertyItem*>(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());
Expand Down

0 comments on commit 088c282

Please sign in to comment.