1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

Make source->username() always return a dbid (also for LocalSource)

This commit is contained in:
Dominik Schmidt 2013-01-27 23:10:49 +01:00
parent ca0162735e
commit 3b65d7b474

View File

@ -51,6 +51,7 @@
#include "Pipeline.h"
#include "DropJob.h"
#include "EchonestCatalogSynchronizer.h"
#include "database/DatabaseImpl.h"
#include "audio/AudioEngine.h"
#include "utils/XspfLoader.h"
@ -577,7 +578,8 @@ TomahawkApp::initLocalCollection()
{
connect( SourceList::instance(), SIGNAL( ready() ), SLOT( initServent() ) );
source_ptr src( new Source( 0, tr( "My Collection" ) ) );
source_ptr src( new Source( 0, Database::instance()->impl()->dbid() ) );
src->setFriendlyName( tr( "My Collection" ) );
collection_ptr coll( new LocalCollection( src ) );
src->addCollection( coll );