Skip to content

Commit

Permalink
PlaylistEditorView: make sure we only update the images once in itemV…
Browse files Browse the repository at this point in the history
…isible

If no image could be found for a node each time a node becomes visible we
would retry to find one. This uses a text field as a flag to make sure we
only look for an image the first time a node becomes visible.
  • Loading branch information
Paul Harrison committed Mar 23, 2014
1 parent c5e7269 commit 87c064d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythplugins/mythmusic/mythmusic/playlisteditorview.cpp
Expand Up @@ -837,8 +837,10 @@ void PlaylistEditorView::treeItemVisible(MythUIButtonListItem *item)
if (!mnode)
return;

if (item->GetImageFilename().isEmpty())
if (item->GetText("*").isEmpty())
{
item->SetText(" ", "*");

QString artFile;

if (mnode->getAction() == "trackid")
Expand Down

0 comments on commit 87c064d

Please sign in to comment.