Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix sub-folder node not displaying artwork of the first child in the …

…tree view. This was working in all the other views but not in the tree view.
  • Loading branch information...
commit bbfda96724facb3bf0c3981e5933d8b61dd4c98c 1 parent 23f3e6f
@stuartm stuartm authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 mythtv/programs/mythfrontend/videolist.cpp
View
8 mythtv/programs/mythfrontend/videolist.cpp
@@ -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);

0 comments on commit bbfda96

Please sign in to comment.
Something went wrong with that request. Please try again.