summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2017-12-12 16:55:36 +0200
committerTomi Korpipää <tomi.korpipaa@qt.io>2017-12-14 06:56:18 +0000
commit938708cb23b90fac87bcab909555edfb748964be (patch)
tree4d3104ecc6195e369efadbdf4f64cdc94a99f975
parentcc80383328a300759d713d0278982fc377286828 (diff)
Fix undo not setting modified flag to doc
The undo stack has SDocTransactionCommands in it, but executing those commands didn't set modified flag to doc, resulting in undos never setting the modified flag. Changed SDocTransactionCommand to set the modified flag. This will now result it modified flag being set at least twice when the transaction is executed for the first time, but that shouldn't cause problems. Task-number: QT3DS-597 Change-Id: Ib5183636cfee63f23aee4ae78fd7dcc96f201abc Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Authoring/Client/Code/Core/Doc/Doc.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Authoring/Client/Code/Core/Doc/Doc.cpp b/src/Authoring/Client/Code/Core/Doc/Doc.cpp
index 66d6abbd..a794dbc4 100644
--- a/src/Authoring/Client/Code/Core/Doc/Doc.cpp
+++ b/src/Authoring/Client/Code/Core/Doc/Doc.cpp
@@ -111,7 +111,6 @@ struct SDocTransactionCommand : public CCmd
, m_DoneOnce(false)
, m_Dispatch(dispatch)
{
- m_ShouldSetModified = false;
}
ECmdType GetType() override { return CCmd::GENERIC; }