Don't emit boxArtLoadComplete on box art load failure to prevent an infinite loop
This commit is contained in:
parent
4e936193c7
commit
f1c7c5f02c
1 changed files with 2 additions and 3 deletions
|
|
@ -89,10 +89,9 @@ QUrl BoxArtManager::loadBoxArt(NvComputer* computer, NvApp& app)
|
||||||
|
|
||||||
void BoxArtManager::handleBoxArtLoadComplete(NvComputer* computer, NvApp app, QUrl image)
|
void BoxArtManager::handleBoxArtLoadComplete(NvComputer* computer, NvApp app, QUrl image)
|
||||||
{
|
{
|
||||||
if (image.isEmpty()) {
|
if (!image.isEmpty()) {
|
||||||
image = QUrl("qrc:/res/no_app_image.png");
|
emit boxArtLoadComplete(computer, app, image);
|
||||||
}
|
}
|
||||||
emit boxArtLoadComplete(computer, app, image);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QUrl BoxArtManager::loadBoxArtFromNetwork(NvComputer* computer, int appId)
|
QUrl BoxArtManager::loadBoxArtFromNetwork(NvComputer* computer, int appId)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue