]> git.sesse.net Git - vlc/commitdiff
qt4: add reseting currentItem to NULL in rebuild() in playlist_model
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 16 Aug 2009 11:54:01 +0000 (14:54 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 16 Aug 2009 11:55:03 +0000 (14:55 +0300)
Set currentItem to NULL if there aren't anything playing on rebuild()

modules/gui/qt4/components/playlist/playlist_model.cpp

index 82b91c2f104f1d97986302c5f7ec0b10d9e76947..654476973e116de9825941023061b374140b9238 100644 (file)
@@ -758,6 +758,10 @@ void PLModel::rebuild( playlist_item_t *p_root )
                             true, false );
         }
     }
+    else
+    {
+        currentItem = NULL;
+    }
     PL_UNLOCK;
 
     /* And signal the view */