Gui: fix property link editor for PropertyLinkSubList
This commit is contained in:
@@ -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)) {
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user