1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-07 17:42:35 +02:00

Emit finished when there's no actual data to return

This commit is contained in:
Jeff Mitchell 2011-03-25 10:04:14 -04:00
parent 6b1bb4da61
commit 247c65fbcc
2 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,8 @@ enum InfoType {
InfoAlbumDate,
InfoAlbumGenre,
InfoAlbumComposer,
InfoAlbumCoverArt,
InfoMiscTopHotttness,
InfoMiscTopTerms,

View File

@ -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);
}
}