Commit 4fdd32fa authored by Jakob Leben's avatar Jakob Leben

Qt: connect currentChanged signal from model earlier

parent ba57e3d2
...@@ -59,6 +59,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -59,6 +59,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
setMinimumWidth( 300 ); setMinimumWidth( 300 );
model = new PLModel( p_playlist, p_intf, p_root, this ); model = new PLModel( p_playlist, p_intf, p_root, this );
CONNECT( model, currentChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) );
iconView = NULL; iconView = NULL;
treeView = NULL; treeView = NULL;
...@@ -349,8 +351,6 @@ void StandardPLPanel::toggleView() ...@@ -349,8 +351,6 @@ void StandardPLPanel::toggleView()
treeView->show(); treeView->show();
currentView = treeView; currentView = treeView;
} }
CONNECT( model, currentChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) );
} }
void StandardPLPanel::wheelEvent( QWheelEvent *e ) void StandardPLPanel::wheelEvent( QWheelEvent *e )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment