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

fix/skillcap
Marc Zinnschlag 7 years ago
parent 4c9e1295e8
commit ddd5cbd17c

@ -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();

Loading…
Cancel
Save