Fix periodic backup's disfunction regression for the main view
The regression was introduced in:
97279d024f (diff-5f6ec155ff896fe5cab66dcf3e3f99c2b72d2498dda4cb68a4002da4468cabda)
This commit is contained in:
parent
1c47c368b8
commit
504e4ca5df
|
@ -2319,7 +2319,7 @@ bool Notepad_plus::loadSession(Session & session, bool isSnapshotMode, const wch
|
|||
|
||||
buf->setUserReadOnly(session._mainViewFiles[i]._isUserReadOnly);
|
||||
|
||||
if (isSnapshotMode && session._mainViewFiles[i]._backupFilePath.empty() && PathFileExists(session._mainViewFiles[i]._backupFilePath.c_str()))
|
||||
if (isSnapshotMode && !session._mainViewFiles[i]._backupFilePath.empty() && PathFileExists(session._mainViewFiles[i]._backupFilePath.c_str()))
|
||||
buf->setDirty(true);
|
||||
|
||||
buf->setRTL(session._mainViewFiles[i]._isRTL);
|
||||
|
|
Loading…
Reference in New Issue