Do not modify user created session even for inaccessible files
Fix partially #12079
This commit is contained in:
parent
64e95cc61c
commit
85d5f972a8
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue