]> git.sesse.net Git - vlc/commitdiff
qt4: removes useless functionnality. fix #1330
authorRafaël Carré <funman@videolan.org>
Mon, 22 Oct 2007 16:00:08 +0000 (16:00 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 22 Oct 2007 16:00:08 +0000 (16:00 +0000)
modules/gui/qt4/components/playlist/standardpanel.cpp

index 95f82c8053b2f9fe9997b89e4314cb76ca9f2878..ac3815dea112c712069d31f8b562222a73c1576a 100644 (file)
@@ -182,17 +182,8 @@ void StandardPLPanel::toggleRandom()
 
 void StandardPLPanel::handleExpansion( const QModelIndex &index )
 {
-    QModelIndex parent;
     if( model->isCurrent( index ) )
-    {
         view->scrollTo( index, QAbstractItemView::EnsureVisible );
-        parent = index;
-        while( parent.isValid() )
-        {
-            view->setExpanded( parent, true );
-            parent = model->parent( parent );
-        }
-    }
 }
 
 void StandardPLPanel::setCurrentRootId( int _new )