mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Emit finished when there's no actual data to return
This commit is contained in:
@@ -78,6 +78,8 @@ enum InfoType {
|
|||||||
InfoAlbumDate,
|
InfoAlbumDate,
|
||||||
InfoAlbumGenre,
|
InfoAlbumGenre,
|
||||||
InfoAlbumComposer,
|
InfoAlbumComposer,
|
||||||
|
InfoAlbumCoverArt,
|
||||||
|
|
||||||
InfoMiscTopHotttness,
|
InfoMiscTopHotttness,
|
||||||
InfoMiscTopTerms,
|
InfoMiscTopTerms,
|
||||||
|
|
||||||
|
@@ -59,6 +59,7 @@ void InfoSystem::getInfo(const QString &caller, const InfoType type, const QVari
|
|||||||
if (providers.isEmpty())
|
if (providers.isEmpty())
|
||||||
{
|
{
|
||||||
emit info(QString(), Tomahawk::InfoSystem::InfoNoInfo, QVariant(), QVariant(), customData);
|
emit info(QString(), Tomahawk::InfoSystem::InfoNoInfo, QVariant(), QVariant(), customData);
|
||||||
|
emit finished(caller);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,6 +67,7 @@ void InfoSystem::getInfo(const QString &caller, const InfoType type, const QVari
|
|||||||
if (!ptr)
|
if (!ptr)
|
||||||
{
|
{
|
||||||
emit info(QString(), Tomahawk::InfoSystem::InfoNoInfo, QVariant(), QVariant(), customData);
|
emit info(QString(), Tomahawk::InfoSystem::InfoNoInfo, QVariant(), QVariant(), customData);
|
||||||
|
emit finished(caller);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,4 +113,4 @@ void InfoSystem::finishedSlot(QString target, Tomahawk::InfoSystem::InfoType typ
|
|||||||
}
|
}
|
||||||
qDebug() << "emitting finished with target" << target;
|
qDebug() << "emitting finished with target" << target;
|
||||||
emit finished(target);
|
emit finished(target);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user