From 74edcbcd0e7be48e8873ec1a3db078e534d5f7a1 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Sat, 4 Apr 2020 07:09:52 +0930 Subject: [PATCH] Mark recovered file as unsaved [skip ci] --- src/documentwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/documentwindow.cpp b/src/documentwindow.cpp index 440421f0..15fab56a 100644 --- a/src/documentwindow.cpp +++ b/src/documentwindow.cpp @@ -1418,6 +1418,8 @@ void DocumentWindow::autoRecover() auto filename = dir + QDir::separator() + autoSavedFiles.last(); openPathAs(filename, ""); + m_documentSaved = false; + updateTitle(); QFile::remove(filename); }