From c978a8c0908f93b280a994cffc615f8183be6352 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 25 Dec 2014 12:28:42 +0200 Subject: [PATCH] Set undo stack clean after each document save. --HG-- branch : develop --- src/app/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())