Skip to content

Commit

Permalink
[gui] add some fallback icons for entries in Art selection dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Sep 28, 2016
1 parent 4d3b243 commit 739cc59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/video/dialogs/GUIDialogVideoInfo.cpp
Expand Up @@ -688,13 +688,15 @@ void CGUIDialogVideoInfo::OnGetArt()
{
CFileItemPtr item(new CFileItem("thumb://Current", false));
item->SetArt("thumb", m_movieItem->GetArt(type));
item->SetIconImage("DefaultPicture.png");
item->SetLabel(g_localizeStrings.Get(13512));
items.Add(item);
}
else if ((type == "poster" || type == "banner") && currentArt.find("thumb") != currentArt.end())
{ // add the 'thumb' type in
CFileItemPtr item(new CFileItem("thumb://Thumb", false));
item->SetArt("thumb", currentArt["thumb"]);
item->SetIconImage("DefaultPicture.png");
item->SetLabel(g_localizeStrings.Get(13512));
items.Add(item);
}
Expand Down Expand Up @@ -722,6 +724,7 @@ void CGUIDialogVideoInfo::OnGetArt()
{
CFileItemPtr item(new CFileItem("thumb://Local", false));
item->SetArt("thumb", localThumb);
item->SetIconImage("DefaultPicture.png");
item->SetLabel(g_localizeStrings.Get(13514));
items.Add(item);
}
Expand Down Expand Up @@ -794,6 +797,7 @@ void CGUIDialogVideoInfo::OnGetFanart()
{
CFileItemPtr itemCurrent(new CFileItem("fanart://Current",false));
itemCurrent->SetArt("thumb", m_movieItem->GetArt("fanart"));
itemCurrent->SetIconImage("DefaultPicture.png");
itemCurrent->SetLabel(g_localizeStrings.Get(20440));
items.Add(itemCurrent);
}
Expand All @@ -819,6 +823,7 @@ void CGUIDialogVideoInfo::OnGetFanart()
{
CFileItemPtr itemLocal(new CFileItem("fanart://Local",false));
itemLocal->SetArt("thumb", strLocal);
itemLocal->SetIconImage("DefaultPicture.png");
itemLocal->SetLabel(g_localizeStrings.Get(20438));

//! @todo Do we need to clear the cached image?
Expand Down

0 comments on commit 739cc59

Please sign in to comment.