[vlc-commits] commit: skins2: playlist, improve deletion of items (Erwan Tulou )

git at videolan.org git at videolan.org
Tue Aug 10 11:34:08 CEST 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Aug 10 10:47:07 2010 +0200| [fadb461f84972d73439b401d06014733858f4a9a] | committer: Erwan Tulou 

skins2: playlist, improve deletion of items

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

 modules/gui/skins2/vars/playtree.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/vars/playtree.cpp b/modules/gui/skins2/vars/playtree.cpp
index cb8e7b0..bcc6fe6 100644
--- a/modules/gui/skins2/vars/playtree.cpp
+++ b/modules/gui/skins2/vars/playtree.cpp
@@ -56,6 +56,7 @@ void Playtree::delSelected()
         if( (*it).m_selected && !(*it).isReadonly() )
         {
             (*it).m_deleted = true;
+            (*it).m_expanded = false;
         }
     }
     /// \todo Do this better (handle item-deleted)
@@ -79,13 +80,13 @@ void Playtree::delSelected()
                 playlist_NodeDelete( getIntf()->p_sys->p_playlist, p_item,
                                      true, false );
             }
-            it2 = getNextVisibleItem( it ) ;
+            it2 = getNextItem( it ) ;
             it->parent()->removeChild( it );
             it = it2;
         }
         else
         {
-            it = getNextVisibleItem( it );
+            it = getNextItem( it );
         }
     }
     playlist_Unlock( getIntf()->p_sys->p_playlist );



More information about the vlc-commits mailing list