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:
parent
ca0162735e
commit
3b65d7b474
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user