]> git.sesse.net Git - vlc/commitdiff
Qt: media library is always a tree
authorJakob Leben <jleben@videolan.org>
Tue, 23 Feb 2010 17:13:57 +0000 (18:13 +0100)
committerJakob Leben <jleben@videolan.org>
Wed, 24 Feb 2010 11:33:47 +0000 (12:33 +0100)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 39f10343fe35effdd1942a5c1af3e5e48bf4049c..479e6022d34e449df8660e89a7d3e04cc888503c 100644 (file)
@@ -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;