From 247c65fbcc37f7100a1a2b8b7ad358d7c960b67f Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 25 Mar 2011 10:04:14 -0400 Subject: [PATCH] Emit finished when there's no actual data to return --- include/tomahawk/infosystem.h | 2 ++ src/infosystem/infosystem.cpp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/tomahawk/infosystem.h b/include/tomahawk/infosystem.h index 4b6c02dc5..c85e74f20 100644 --- a/include/tomahawk/infosystem.h +++ b/include/tomahawk/infosystem.h @@ -78,6 +78,8 @@ enum InfoType { InfoAlbumDate, InfoAlbumGenre, InfoAlbumComposer, + InfoAlbumCoverArt, + InfoMiscTopHotttness, InfoMiscTopTerms, diff --git a/src/infosystem/infosystem.cpp b/src/infosystem/infosystem.cpp index 5df0a2a01..0c0ca1513 100644 --- a/src/infosystem/infosystem.cpp +++ b/src/infosystem/infosystem.cpp @@ -59,6 +59,7 @@ void InfoSystem::getInfo(const QString &caller, const InfoType type, const QVari if (providers.isEmpty()) { emit info(QString(), Tomahawk::InfoSystem::InfoNoInfo, QVariant(), QVariant(), customData); + emit finished(caller); return; } @@ -66,6 +67,7 @@ void InfoSystem::getInfo(const QString &caller, const InfoType type, const QVari if (!ptr) { emit info(QString(), Tomahawk::InfoSystem::InfoNoInfo, QVariant(), QVariant(), customData); + emit finished(caller); return; } @@ -111,4 +113,4 @@ void InfoSystem::finishedSlot(QString target, Tomahawk::InfoSystem::InfoType typ } qDebug() << "emitting finished with target" << target; emit finished(target); -} \ No newline at end of file +}