From ddd5cbd17c64bfa5ba6e86c953e0a1d30a0271cf Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sat, 21 Jul 2018 17:36:50 +0200 Subject: [PATCH] Initialise lock state of newly opened subviews (fixes issue #4520) --- apps/opencs/view/doc/view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/opencs/view/doc/view.cpp b/apps/opencs/view/doc/view.cpp index 9e87e9a3a..3ebefd69a 100644 --- a/apps/opencs/view/doc/view.cpp +++ b/apps/opencs/view/doc/view.cpp @@ -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();