summaryrefslogtreecommitdiffstats
path: root/src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-12-11 17:35:41 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-12-13 09:08:50 +0000
commit98dc798dda7abb2eba3a48fe186614e0ef0e2532 (patch)
tree4efc77553fdf37170d39595566ea808ef2aab8d7 /src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h
parent63277cd87558878cd35766da528c947e981d3e70 (diff)
Track selection properly on chooser dialogs
Doing undo/redo while chooser dialogs are open now updates the values correctly or closes the dialog if underlying model changes in response to undo/redo. Also fixes various related issues like extra transactions that would occur on programmatic selection change. Task-number: QT3DS-2670 Change-Id: Ia6a64abed2f7fe5a615e1d52ce83794d7e89cce1 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h')
-rw-r--r--src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h b/src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h
index 0c77b9c4..6ebb24f3 100644
--- a/src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h
+++ b/src/Authoring/QT3DSDM/Systems/Qt3DSDMActionInfo.h
@@ -37,8 +37,8 @@ namespace qt3dsdm {
using std::wstring;
struct SActionInfo
{
- Qt3DSDMInstanceHandle m_Instance; // InstanceHandle corresponding to this action (to store other
- // properties not listed here)
+ // InstanceHandle corresponding to this action (to store other properties not listed here)
+ Qt3DSDMInstanceHandle m_Instance = -1;
// Where the action is added to
Qt3DSDMSlideHandle m_Slide; // the slide that the action is added to