mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Some cleanups.
This commit is contained in:
@@ -47,6 +47,7 @@ Artist::collection() const
|
|||||||
return m_collection;
|
return m_collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Artist::onTracksAdded( const QList<Tomahawk::query_ptr>& tracks, const Tomahawk::collection_ptr& collection )
|
Artist::onTracksAdded( const QList<Tomahawk::query_ptr>& tracks, const Tomahawk::collection_ptr& collection )
|
||||||
{
|
{
|
||||||
|
@@ -44,8 +44,8 @@ SourceList::loadSources()
|
|||||||
qDebug() << Q_FUNC_INFO;
|
qDebug() << Q_FUNC_INFO;
|
||||||
DatabaseCommand_LoadAllSources* cmd = new DatabaseCommand_LoadAllSources();
|
DatabaseCommand_LoadAllSources* cmd = new DatabaseCommand_LoadAllSources();
|
||||||
|
|
||||||
connect( cmd, SIGNAL( done( const QList<Tomahawk::source_ptr>& ) ),
|
connect( cmd, SIGNAL( done( QList<Tomahawk::source_ptr> ) ),
|
||||||
SLOT( setSources( const QList<Tomahawk::source_ptr>& ) ) );
|
SLOT( setSources( QList<Tomahawk::source_ptr> ) ) );
|
||||||
|
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ SourceList::add( const source_ptr& source )
|
|||||||
|
|
||||||
collection_ptr coll( new RemoteCollection( source ) );
|
collection_ptr coll( new RemoteCollection( source ) );
|
||||||
source->addCollection( coll );
|
source->addCollection( coll );
|
||||||
source->collection()->tracks();
|
// source->collection()->tracks();
|
||||||
|
|
||||||
emit sourceAdded( source );
|
emit sourceAdded( source );
|
||||||
}
|
}
|
||||||
|
@@ -422,7 +422,7 @@ TomahawkApp::initLocalCollection()
|
|||||||
|
|
||||||
src->addCollection( coll );
|
src->addCollection( coll );
|
||||||
SourceList::instance()->setLocal( src );
|
SourceList::instance()->setLocal( src );
|
||||||
src->collection()->tracks();
|
// src->collection()->tracks();
|
||||||
|
|
||||||
// to make the stats signal be emitted by our local source
|
// to make the stats signal be emitted by our local source
|
||||||
// this will update the sidebar, etc.
|
// this will update the sidebar, etc.
|
||||||
|
Reference in New Issue
Block a user