Skip to content

Commit

Permalink
Gui: fix property link editor for PropertyLinkSubList
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Jun 3, 2020
1 parent fcddee2 commit 92804a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui/DlgPropertyLink.cpp
Expand Up @@ -262,6 +262,8 @@ void DlgPropertyLink::init(const App::DocumentObjectT &prop, bool tryFilter) {
singleParent = true;
} else if (propLink->isDerivedFrom(App::PropertyLink::getClassTypeId())) {
singleSelect = true;
} else if (propLink->isDerivedFrom(App::PropertyLinkSubList::getClassTypeId())) {
allowSubObject = true;
}

if(App::PropertyXLink::supportXLink(propLink)) {
Expand Down Expand Up @@ -572,7 +574,7 @@ QTreeWidgetItem *DlgPropertyLink::findItem(
onItemExpanded(itDoc->second);

auto it = itemMap.find(obj);
if(it == itemMap.end())
if(it == itemMap.end() || it->second->isHidden())
return 0;

if(!allowSubObject) {
Expand Down

0 comments on commit 92804a7

Please sign in to comment.