mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
Make source->username() always return a dbid (also for LocalSource)
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
#include "Pipeline.h"
|
#include "Pipeline.h"
|
||||||
#include "DropJob.h"
|
#include "DropJob.h"
|
||||||
#include "EchonestCatalogSynchronizer.h"
|
#include "EchonestCatalogSynchronizer.h"
|
||||||
|
#include "database/DatabaseImpl.h"
|
||||||
|
|
||||||
#include "audio/AudioEngine.h"
|
#include "audio/AudioEngine.h"
|
||||||
#include "utils/XspfLoader.h"
|
#include "utils/XspfLoader.h"
|
||||||
@@ -577,7 +578,8 @@ TomahawkApp::initLocalCollection()
|
|||||||
{
|
{
|
||||||
connect( SourceList::instance(), SIGNAL( ready() ), SLOT( initServent() ) );
|
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 ) );
|
collection_ptr coll( new LocalCollection( src ) );
|
||||||
|
|
||||||
src->addCollection( coll );
|
src->addCollection( coll );
|
||||||
|
Reference in New Issue
Block a user