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