mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Don't try to load the playback history if the sources instance isn't ready yet.
This commit is contained in:
@@ -40,9 +40,11 @@ RecentlyPlayedModel::RecentlyPlayedModel( const source_ptr& source, QObject* par
|
||||
{
|
||||
if ( source.isNull() )
|
||||
{
|
||||
if ( SourceList::instance()->isReady() )
|
||||
onSourcesReady();
|
||||
|
||||
else
|
||||
connect( SourceList::instance(), SIGNAL( ready() ), SLOT( onSourcesReady() ) );
|
||||
|
||||
connect( SourceList::instance(), SIGNAL( sourceAdded( Tomahawk::source_ptr ) ), SLOT( onSourceAdded( Tomahawk::source_ptr ) ) );
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user