summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2019-01-08 13:34:41 +0100
committerChristian Stromme <christian.stromme@qt.io>2019-01-08 15:42:20 +0000
commit06878f0e005e95eddc366a5647276dd48cee1004 (patch)
tree30bc6258799dbb2cc3cd91554d2e8eb8b60b1f3f /src
parent5dea9d2aa40f3bfc21d8b9aaac1771e9a54a7162 (diff)
Add some more check before processing a slide
If the new state is idle or the new slide isn't visible don't process it Change-Id: Id7c9109eee04458e8ccc3870ee911e2f9ff7b15e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/slideplayerng/q3dsslideplayerng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/slideplayerng/q3dsslideplayerng.cpp b/src/runtime/slideplayerng/q3dsslideplayerng.cpp
index f416ca0..cdba58c 100644
--- a/src/runtime/slideplayerng/q3dsslideplayerng.cpp
+++ b/src/runtime/slideplayerng/q3dsslideplayerng.cpp
@@ -562,7 +562,7 @@ void Q3DSSlidePlayerNg::setInternalState(Q3DSSlidePlayerNg::PlayerState newState
// If we have a new slide we need to update the property changes for that slide.
// This also makes sure we don't overwrite the values for properties with dynamic key frames
- if (currentSlide) {
+ if ((newState != PlayerState::Idle) && currentSlide && isSlideVisible(currentSlide)) {
// Update the scene/component to hold the current slide
if (m_type == PlayerType::Scene)
m_sceneManager->m_currentSlide = currentSlide;