diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 0069a3a97..8329ed31f 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -2039,7 +2039,7 @@ void MainWindow::AutoSavePattern() void MainWindow::setCurrentFile(const QString &fileName) { curFile = fileName; - setWindowModified(false); + qApp->getUndoStack()->setClean(); QString shownName = strippedName(curFile); if (curFile.isEmpty())