Initialise lock state of newly opened subviews (fixes issue #4520)

This commit is contained in:
Marc Zinnschlag 2018-07-21 17:36:50 +02:00
parent 4c9e1295e8
commit ddd5cbd17c

View file

@ -646,6 +646,7 @@ void CSVDoc::View::addSubView (const CSMWorld::UniversalId& id, const std::strin
}
assert(view);
view->setParent(this);
view->setEditLock (mDocument->getState() & CSMDoc::State_Locked);
mSubViews.append(view); // only after assert
int minWidth = windows["minimum-width"].toInt();