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

* Load recent albums when SourceList is ready.

This commit is contained in:
Christian Muehlhaeuser
2013-06-22 12:32:25 +02:00
committed by Michael Zanetti
parent a4505930b5
commit 1ecfc8aa9e
2 changed files with 2 additions and 9 deletions

View File

@@ -186,13 +186,6 @@ Dashboard::~Dashboard()
} }
void
Dashboard::loadData()
{
m_recentAlbumsModel->addFilteredCollection( collection_ptr(), 20, DatabaseCommand_AllAlbums::ModificationTime, true );
}
Tomahawk::playlistinterface_ptr Tomahawk::playlistinterface_ptr
Dashboard::playlistInterface() const Dashboard::playlistInterface() const
{ {
@@ -228,6 +221,8 @@ Dashboard::onSourcesReady()
{ {
foreach ( const source_ptr& source, SourceList::instance()->sources() ) foreach ( const source_ptr& source, SourceList::instance()->sources() )
onSourceAdded( source ); onSourceAdded( source );
updateRecentAdditions();
} }

View File

@@ -111,8 +111,6 @@ public slots:
void updatePlaylists(); void updatePlaylists();
void updateRecentAdditions(); void updateRecentAdditions();
void loadData();
private slots: private slots:
void onSourcesReady(); void onSourcesReady();
void onSourceAdded( const Tomahawk::source_ptr& source ); void onSourceAdded( const Tomahawk::source_ptr& source );