1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 21:59:55 +00:00

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); assert(view);
view->setParent(this); view->setParent(this);
view->setEditLock (mDocument->getState() & CSMDoc::State_Locked);
mSubViews.append(view); // only after assert mSubViews.append(view); // only after assert
int minWidth = windows["minimum-width"].toInt(); int minWidth = windows["minimum-width"].toInt();