mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-14 01:04: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:
@@ -534,7 +534,9 @@ QString QETProject::pathNameTitle() const
|
||||
)
|
||||
).arg(final_title);
|
||||
}
|
||||
if (m_modified) {
|
||||
// Same condition as projectWasModified(): project-options changeg (m_modified) OR the undo stack sitting away from
|
||||
// its clean index.
|
||||
if (m_modified || !m_undo_stack->isClean()) {
|
||||
final_title = QString(
|
||||
tr(
|
||||
"%1 [modifié]",
|
||||
|
||||
Reference in New Issue
Block a user