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 95f82c8..ac3815d 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 )