From 4e1bb4bea533b1b41ebc9682e7a6bbcdf0269b0d Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 9 Jun 2014 20:43:22 +0300 Subject: [PATCH] Clear undo stack after saving. --HG-- branch : feature --- 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 606e1e886..5b9ddee3f 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -1645,7 +1645,7 @@ bool MainWindow::SavePattern(const QString &fileName) { setCurrentFile(fileName); helpLabel->setText(tr("File saved")); - qApp->getUndoStack()->setClean(); + qApp->getUndoStack()->clear(); } } return result;