[vlc-devel] commit: Qt playlist: mistaken currentItem logic (Jakob Leben )
git version control
git at videolan.org
Tue Jan 26 07:30:52 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Tue Jan 26 07:29:39 2010 +0100| [10f045d31419882b2fb09d6cee7f3b92e657181d] | committer: Jakob Leben
Qt playlist: mistaken currentItem logic
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10f045d31419882b2fb09d6cee7f3b92e657181d
---
.../gui/qt4/components/playlist/playlist_model.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 0e2bb01..98c40f7 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -718,9 +718,8 @@ void PLModel::removeItem( PLItem *item )
void PLModel::updateChildren( PLItem *root )
{
playlist_item_t *p_node = playlist_ItemGetById( p_playlist, root->i_id );
- PLItem *oldCurrent = currentItem;
+ currentItem = NULL;
updateChildren( p_node, root );
- if( currentItem != oldCurrent );
emit currentChanged( index( currentItem, 0 ) );
}
More information about the vlc-devel
mailing list