Skip to content

Commit

Permalink
Make source->username() always return a dbid (also for LocalSource)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Jan 27, 2013
1 parent ca01627 commit 3b65d7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TomahawkApp.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 3b65d7b

Please sign in to comment.