summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Client/Code/Core/Commands/CmdStack.h
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2018-12-07 16:19:13 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-12-10 08:32:45 +0000
commitcf54ebd6f3591c09a7d3c1e5fdde9d8be163f02d (patch)
treeffc532db256018f7f09b141c330e15dca30b685b /src/Authoring/Client/Code/Core/Commands/CmdStack.h
parent69c3a54687eed3bca968aaba4efd87334df7304f (diff)
Fix undoing material type change doesn't update ref materials bugv2.2.0-rcv2.2.02.2
Also removed a previous hot fix (QT3DS-2768) and some cleanups in the undo/redo system. Task-number: QT3DS-2827 Change-Id: Id1bb8e89c4121dd3cf447bf29c1a0d02d034e247 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Client/Code/Core/Commands/CmdStack.h')
-rw-r--r--src/Authoring/Client/Code/Core/Commands/CmdStack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Authoring/Client/Code/Core/Commands/CmdStack.h b/src/Authoring/Client/Code/Core/Commands/CmdStack.h
index 7388703d..9597f5a6 100644
--- a/src/Authoring/Client/Code/Core/Commands/CmdStack.h
+++ b/src/Authoring/Client/Code/Core/Commands/CmdStack.h
@@ -102,15 +102,15 @@ public:
protected:
void EmptyUndoStack();
- ICmdStackModifier *m_CommandStackModifier;
+ ICmdStackModifier *m_CommandStackModifier = nullptr;
TCmdList m_UndoList;
TCmdList m_RedoList;
bool m_undoingOrRedoing = false;
- unsigned long m_MaxUndoStackSize;
+ unsigned long m_MaxUndoStackSize = 100;
- CModificationListener *m_Listener;
+ CModificationListener *m_Listener = nullptr;
};
#endif // INCLUDED_CMD_STACK_H