]> git.sesse.net Git - vlc/commit
skins2: playlist, fix issues when deletion is at stake
authorErwan Tulou <erwan10@videolan.org>
Tue, 10 Aug 2010 08:47:37 +0000 (10:47 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 10 Aug 2010 09:30:51 +0000 (11:30 +0200)
commitc580a341d85b4bc24481e396897e516060d6fb4a
treebbdbeaee592a99eeec1db2ef13ea219d947c8a5b
parentfadb461f84972d73439b401d06014733858f4a9a
skins2: playlist, fix issues when deletion is at stake

This patch does the following
   - do not reset m_firstPosition when not needed
   - fix corner case when playlist is flat (prone to crash)
     The node with a single leaf being deleted should become the
     next leaf. But, actually just forcing the rtree.begin()
     in any case is simpler and no problem here.
modules/gui/skins2/controls/ctrl_tree.cpp