]> git.sesse.net Git - vlc/commitdiff
Naive implementation of deletion : full rebuild after deletion, and refocus on curren...
authorClément Stenac <zorglub@videolan.org>
Sat, 3 Dec 2005 15:22:28 +0000 (15:22 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 3 Dec 2005 15:22:28 +0000 (15:22 +0000)
modules/gui/skins2/vars/playtree.cpp

index a001cf47aba2ce60edd89456794d9453832a22bc..d63fa28a0f8830bca7e18d6104d9861506f1f5e6 100644 (file)
@@ -58,7 +58,7 @@ Playtree::~Playtree()
 void Playtree::delSelected()
 {
     Iterator it;
-    for (it = begin(); it != end() ; it++ )
+    for (it = begin(); it != end() ; it = getNextVisibleItem( it ) )
     {
         if( (*it).m_selected )
         {
@@ -77,6 +77,7 @@ void Playtree::delSelected()
             }
         }
     }
+    buildTree();
     notify();
 }