Do not modify user created session even for inaccessible files

Fix partially #12079
This commit is contained in:
Don Ho 2023-10-13 18:17:54 +02:00
parent 64e95cc61c
commit 85d5f972a8
1 changed files with 0 additions and 2 deletions

View File

@ -2470,8 +2470,6 @@ bool Notepad_plus::fileLoadSession(const TCHAR *fn)
if (isEmptyNpp && (nppGUI._multiInstSetting == multiInstOnSession || nppGUI._multiInstSetting == multiInst))
nppParam.setLoadedSessionFilePath(sessionFileName);
}
if (!isAllSuccessful)
nppParam.writeSession(session2Load, sessionFileName.c_str());
}
if (result == false)
{