From 179d84c39b3b227de538007dd1e14ce70722f6bc Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 16 Nov 2011 04:54:52 +0100 Subject: [PATCH] * Set stats for the right collection. --- src/libtomahawk/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/source.cpp b/src/libtomahawk/source.cpp index 9bc8519a6..f88f1279f 100644 --- a/src/libtomahawk/source.cpp +++ b/src/libtomahawk/source.cpp @@ -429,7 +429,7 @@ Source::updateTracks() // Re-calculate local db stats DatabaseCommand_CollectionStats* cmd = new DatabaseCommand_CollectionStats( SourceList::instance()->get( id() ) ); connect( cmd, SIGNAL( done( QVariantMap ) ), - SourceList::instance()->getLocal().data(), SLOT( setStats( QVariantMap ) ), Qt::QueuedConnection ); + this, SLOT( setStats( QVariantMap ) ), Qt::QueuedConnection ); Database::instance()->enqueue( QSharedPointer( cmd ) ); connect( cmd, SIGNAL( finished() ), SIGNAL( stateChanged() ) );