This is happens because two classes (QUndoStack and VPattern) turn on indication separately.
- Open a pattern with standard measurements.
- Select Pattern piece->Pattern properties and make some change. The document will be marked as unsaved.
- Move a pattern piece, than undo your changes. The document now marked as saved. But we still have unsaved the pattern properties options.
Possible way to fix.
Possible solution could be add three new undo commands: save description, save gradation and save fixed formula.
In theory the signal void VPattern::patternChanged(bool saved); must disappear from the class.