]> git.sesse.net Git - vlc/commitdiff
Don't invalidate selection on item change (Refs:#477)
authorClément Stenac <zorglub@videolan.org>
Sat, 11 Feb 2006 00:07:40 +0000 (00:07 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 11 Feb 2006 00:07:40 +0000 (00:07 +0000)
modules/gui/skins2/controls/ctrl_tree.cpp

index 4e4ef855ecfe9d00555177b62fb0ca2368a36e61..0d49e511d3e095cba6eec179d0103a8b4957346b 100644 (file)
@@ -138,6 +138,7 @@ void CtrlTree::onUpdate( Subject<VarTree, tree_update*> &rTree,
         autoScroll();
         makeImage();
     }
+    /// \todo handle delete in a more clever way
     else if ( arg->i_type == 1 ) // Global change or deletion
     {
         m_firstPos = m_rTree.begin();
@@ -145,14 +146,13 @@ void CtrlTree::onUpdate( Subject<VarTree, tree_update*> &rTree,
     }
     else if ( arg->i_type == 2 ) // Item-append
     {
-        /// \todo Check if the really is really visible in the view (we only check if it in the document)
+        /// \todo Check if the item is really visible in the view (we only check if it in the document)
         if( arg->b_visible == true )
         {
             makeImage();
         }
     }
     notifyLayout();
-    m_pLastSelected = NULL;
 }
 
 void CtrlTree::onUpdate( Subject<VarPercent, void*> &rPercent, void* arg)