diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 6f18b830..244468c3 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1833,7 +1833,7 @@ bool Notepad_plus::loadSession(Session & session, bool isSnapshotMode) } buf->setLangType(typeToSet, pLn); buf->setEncoding(session._subViewFiles[k]._encoding); - buf->setUserReadOnly(session._mainViewFiles[k]._isUserReadOnly); + buf->setUserReadOnly(session._subViewFiles[k]._isUserReadOnly); if (isSnapshotMode && session._subViewFiles[k]._backupFilePath != TEXT("") && PathFileExists(session._subViewFiles[k]._backupFilePath.c_str())) buf->setDirty(true);