Skip to content

Commit

Permalink
Internet Content: Patch from Doug Vaughan to allow a fallback directo…
Browse files Browse the repository at this point in the history
…ry icon when one is not specified.

git-svn-id: http://svn.mythtv.org/svn/trunk@24891 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Robert McNamara committed May 27, 2010
1 parent 856b0c7 commit 6ff252d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Expand Up @@ -398,6 +398,8 @@ def setTreeViewIcon(self, dir_icon=None):
if not self.feed_icons[self.tree_key].has_key(self.feed):
return self.tree_dir_icon
dir_icon = self.feed_icons[self.tree_key][self.feed]
if not dir_icon:
return self.tree_dir_icon
self.tree_dir_icon = u'%%SHAREDIR%%/mythnetvision/icons/%s.png' % (dir_icon, )
return self.tree_dir_icon
# end setTreeViewIcon()
Expand Down
Expand Up @@ -686,6 +686,8 @@ def setTreeViewIcon(self, dir_icon=None):
if not self.feed_icons[self.tree_key].has_key(self.feed):
return self.tree_dir_icon
dir_icon = self.feed_icons[self.tree_key][self.feed]
if not dir_icon:
return self.tree_dir_icon
self.tree_dir_icon = u'%%SHAREDIR%%/mythnetvision/icons/%s.png' % (dir_icon, )
return self.tree_dir_icon
# end setTreeViewIcon()
Expand Down
Expand Up @@ -334,6 +334,8 @@ def setTreeViewIcon(self, dir_icon=None):
if not self.feed_icons[self.tree_key].has_key(self.feed):
return self.tree_dir_icon
dir_icon = self.feed_icons[self.tree_key][self.feed]
if not dir_icon:
return self.tree_dir_icon
self.tree_dir_icon = u'%%SHAREDIR%%/mythnetvision/icons/%s.png' % (dir_icon, )
return self.tree_dir_icon
# end setTreeViewIcon()
Expand Down
Expand Up @@ -851,6 +851,8 @@ def setTreeViewIcon(self, dir_icon=None):
if not self.feed_icons[self.tree_key].has_key(self.feed):
return self.tree_dir_icon
dir_icon = self.feed_icons[self.tree_key][self.feed]
if not dir_icon:
return self.tree_dir_icon
self.tree_dir_icon = u'%%SHAREDIR%%/mythnetvision/icons/%s.png' % (dir_icon, )
return self.tree_dir_icon
# end setTreeViewIcon()
Expand Down

0 comments on commit 6ff252d

Please sign in to comment.