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:
parent
4c9e1295e8
commit
ddd5cbd17c
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue