1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

fix loading state

This commit is contained in:
Michael Zanetti
2013-06-29 22:00:10 +02:00
parent c161d5dc3d
commit d65de01847

View File

@@ -50,8 +50,6 @@ DynamicQmlWidget::DynamicQmlWidget( const dynplaylist_ptr& playlist, QWidget* pa
setSource( QUrl( "qrc" RESPATH "qml/StationView.qml" ) );
connect( m_model, SIGNAL( currentIndexChanged()), SLOT( currentIndexChanged() ) );
connect( m_model, SIGNAL( loadingStarted() ), SIGNAL(loadingChanged() ) );
connect( m_model, SIGNAL( loadingFinished() ), SIGNAL(loadingChanged() ) );
connect( m_model, SIGNAL( changed() ), SIGNAL( titleChanged() ) );
connect( m_playlist->generator().data(), SIGNAL( generated( QList<Tomahawk::query_ptr> ) ), this, SLOT( tracksGenerated( QList<Tomahawk::query_ptr> ) ) );
connect( m_playlist->generator().data(), SIGNAL( nextTrackGenerated( Tomahawk::query_ptr ) ), this, SLOT( nextTrackGenerated( Tomahawk::query_ptr ) ) );
@@ -241,6 +239,7 @@ void DynamicQmlWidget::resolvingFinished(bool hasResults)
}
if( m_playNextResolved && m_proxyModel->rowCount() > 0 ) {
emit loadingChanged();
playItem( 0 );
m_playNextResolved = false;
}