1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 04:51:53 +02:00

* Might fix an unwanted assert situation.

This commit is contained in:
Christian Muehlhaeuser 2011-02-23 16:24:10 +01:00
parent b8abb9083f
commit b4ed75c642

View File

@ -88,9 +88,9 @@ SourceList::add( const source_ptr& source )
{
Q_ASSERT( source->id() );
connect( source.data(), SIGNAL( syncedWithDatabase() ), SLOT( sourceSynced() ) );
m_sources.insert( source->userName(), source );
m_sources_id2name.insert( source->id(), source->userName() );
connect( source.data(), SIGNAL( syncedWithDatabase() ), SLOT( sourceSynced() ) );
collection_ptr coll( new RemoteCollection( source ) );
source->addCollection( coll );