Skip to content

Commit

Permalink
Fix sub-folder node not displaying artwork of the first child in the …
Browse files Browse the repository at this point in the history
…tree view. This was working in all the other views but not in the tree view.
  • Loading branch information
stuartm committed Mar 9, 2012
1 parent 23f3e6f commit bbfda96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mythtv/programs/mythfrontend/videolist.cpp
Expand Up @@ -335,6 +335,14 @@ static int AddFileNode(MythGenericTree *where_to_add, QString name,
sub_node->SetImageFromMap(imageMap);
sub_node->SetImage("buttonimage", imageMap["smartimage"]);

// Assign images to parent node if this is the first child
if (where_to_add->visibleChildCount() == 1 &&
where_to_add->getInt() == kSubFolder)
{
where_to_add->SetImageFromMap(imageMap);
where_to_add->SetImage("buttonimage", imageMap["smartimage"]);
}

// Statetypes
QHash<QString, QString> stateMap;
metadata->GetStateMap(stateMap);
Expand Down

0 comments on commit bbfda96

Please sign in to comment.