Commit 1adc6693 authored by Jakob Leben's avatar Jakob Leben

Qt: connect to iconView only after it has been created

parent 23b25628
......@@ -122,8 +122,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
last_activated_id = -1;
CONNECT( THEMIM, inputChanged( input_thread_t * ),
this, handleInputChange( input_thread_t * ) );
CONNECT( locationBar, invoked( const QModelIndex & ),
iconView, setRootIndex( const QModelIndex & ) );
}
StandardPLPanel::~StandardPLPanel()
......@@ -287,6 +285,8 @@ void StandardPLPanel::createIconView()
this, popupPlView( const QPoint & ) );
CONNECT( iconView, activated( const QModelIndex & ),
this, activate( const QModelIndex & ) );
CONNECT( locationBar, invoked( const QModelIndex & ),
iconView, setRootIndex( const QModelIndex & ) );
layout->addWidget( iconView, 1, 0, 1, -1 );
}
......
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