1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 05:11:44 +02:00

Update local collection after successful download.

This commit is contained in:
Christian Muehlhaeuser
2015-04-13 05:08:49 +02:00
parent 9c0eb10ca6
commit 6914b7a45d

View File

@@ -20,6 +20,7 @@
#include <QTimer>
#include "filemetadata/ScanManager.h"
#include "TomahawkSettings.h"
#include "infosystem/InfoSystem.h"
#include "utils/Logger.h"
@@ -255,6 +256,10 @@ DownloadManager::onJobFinished()
{
DownloadJob* job = qobject_cast<DownloadJob*>( sender() );
QStringList files;
files << job->localFile();
ScanManager::instance()->runFileScan( files, true );
Tomahawk::InfoSystem::InfoPushData pushData( "DownloadManager", Tomahawk::InfoSystem::InfoNotifyUser,
tr( "Tomahawk finished downloading %1 by %2." ).arg( job->track()->track() ).arg( job->track()->artist() ),
Tomahawk::InfoSystem::PushNoFlag );