[vlc-devel] commit: Qt: media library is always a tree (Jakob Leben )
git version control
git at videolan.org
Wed Feb 24 12:34:39 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Tue Feb 23 18:13:57 2010 +0100| [33983bc558f3efe402af8a5719d6796316ec9a16] | committer: Jakob Leben
Qt: media library is always a tree
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33983bc558f3efe402af8a5719d6796316ec9a16
---
.../gui/qt4/components/playlist/playlist_model.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 39f1034..479e602 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -896,7 +896,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
( rootItem->i_id );
i_popup_column = index.column();
- bool tree = var_InheritBool( p_intf, "playlist-tree" );
+ bool tree = ( rootItem && rootItem->i_id != p_playlist->p_playing->i_id ) ||
+ var_InheritBool( p_intf, "playlist-tree" );
PL_UNLOCK;
More information about the vlc-devel
mailing list