summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Client/Code/Core/Doc/Doc.cpp
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-04-30 16:22:59 +0300
committerMahmoud Badri <mahmoud.badri@qt.io>2019-05-02 07:08:20 +0000
commit437593e677cd1ed85ef846a3488dc3212fdde54a (patch)
tree1ca738966a17bcf441169004889f6352c965a016 /src/Authoring/Client/Code/Core/Doc/Doc.cpp
parent5ae4c87e41dbdeb1e7745756bbe22045127d6977 (diff)
Fix Ctrl-deselect a single object
Task-number: QT3DS-3372 Change-Id: I572d57fe0cb0589d090c18123e8309bbd2d3344a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Client/Code/Core/Doc/Doc.cpp')
-rw-r--r--src/Authoring/Client/Code/Core/Doc/Doc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Authoring/Client/Code/Core/Doc/Doc.cpp b/src/Authoring/Client/Code/Core/Doc/Doc.cpp
index d8dabd0b..5d8bc44e 100644
--- a/src/Authoring/Client/Code/Core/Doc/Doc.cpp
+++ b/src/Authoring/Client/Code/Core/Doc/Doc.cpp
@@ -1391,11 +1391,11 @@ void CDoc::ToggleDataModelObjectToSelection(qt3dsdm::Qt3DSDMInstanceHandle inIns
theCurrentlySelectedInstance))
theNewHandles.push_back(theCurrentlySelectedInstance);
}
- } else
+ } else {
theNewHandles = m_SelectedValue.getData<qt3dsdm::TInstanceHandleList>();
+ }
- qt3dsdm::TInstanceHandleList::iterator iter =
- std::find(theNewHandles.begin(), theNewHandles.end(), inInstance);
+ auto iter = std::find(theNewHandles.begin(), theNewHandles.end(), inInstance);
if (iter == theNewHandles.end())
theNewHandles.push_back(inInstance);
else