mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-01 23:54:13 +02:00
Fix:
a) Project stayed in modified state even after undoing all changes. b) Saving the project deleted the undo stack.
This commit is contained in:
@@ -726,7 +726,10 @@ QETResult ProjectView::doSave()
|
||||
// write to file
|
||||
QETResult result = m_project -> write();
|
||||
updateWindowTitle();
|
||||
project()->undoStack()->clear();
|
||||
// This marks the stack's current index as the new "saved" point (so isClean()/cleanChanged() correctly
|
||||
// resume tracking unsaved changes from here) without discarding the undo history. Edits made before this save
|
||||
// stay undoable for the rest of the session.
|
||||
project()->undoStack()->setClean();
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user