[vlc-devel] commit: qt4: add reseting currentItem to NULL in rebuild() in playlist_model (Ilkka Ollakka )

git version control git at videolan.org
Sun Aug 16 13:56:13 CEST 2009


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Aug 16 14:54:01 2009 +0300| [d948c34d4b3bcc71851870c79418dd506f62fd4e] | committer: Ilkka Ollakka 

qt4: add reseting currentItem to NULL in rebuild() in playlist_model

Set currentItem to NULL if there aren't anything playing on rebuild()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d948c34d4b3bcc71851870c79418dd506f62fd4e
---

 .../gui/qt4/components/playlist/playlist_model.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 82b91c2..6544769 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -758,6 +758,10 @@ void PLModel::rebuild( playlist_item_t *p_root )
                             true, false );
         }
     }
+    else
+    {
+        currentItem = NULL;
+    }
     PL_UNLOCK;
 
     /* And signal the view */




More information about the vlc-devel mailing list