Fix condition check against wrong variable
authorBea Lam <bea.lam@nokia.com>
Mon, 20 Feb 2012 23:19:54 +0000 (09:19 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 21 Feb 2012 01:26:54 +0000 (02:26 +0100)
Change-Id: I0857166e666e886077e4b0eda2d8b00b13f99ba6
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickitemview.cpp

index 955375e..533e1f6 100644 (file)
@@ -165,7 +165,7 @@ void FxViewItem::startTransition()
     if (nextTransitionType == FxViewItemTransitionManager::NoTransition)
         return;
 
-    if (!transition || transition->m_type != nextTransitionType || transition->m_type != isTransitionTarget) {
+    if (!transition || transition->m_type != nextTransitionType || transition->m_isTarget != isTransitionTarget) {
         delete transition;
         transition = new FxViewItemTransitionManager;
     }