Mark recovered file as unsaved [skip ci]

master
huxingyi 2020-04-04 07:09:52 +09:30
parent 61532fe00c
commit 74edcbcd0e
1 changed files with 2 additions and 0 deletions

View File

@ -1418,6 +1418,8 @@ void DocumentWindow::autoRecover()
auto filename = dir + QDir::separator() + autoSavedFiles.last();
openPathAs(filename, "");
m_documentSaved = false;
updateTitle();
QFile::remove(filename);
}