when restoring object then only expand single items, not its parent items

This commit is contained in:
wmayer
2019-02-24 00:37:53 +01:00
parent 03d7070e58
commit 1308a02c83
5 changed files with 19 additions and 14 deletions

View File

@@ -829,7 +829,7 @@ void Document::RestoreDocFile(Base::Reader &reader)
pObj->Restore(xmlReader);
if (pObj && expanded) {
Gui::ViewProviderDocumentObject* vp = static_cast<Gui::ViewProviderDocumentObject*>(pObj);
this->signalExpandObject(*vp, Gui::Expand);
this->signalExpandObject(*vp, Gui::ExpandItem);
}
xmlReader.readEndElement("ViewProvider");
}