Permalink
Browse files

Internet Content: Patch from Doug Vaughan to allow a fallback directo…

…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...
1 parent 856b0c7 commit 6ff252dfe3da25c39378335c558ffb5022b85afe Robert McNamara committed May 27, 2010
@@ -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()
@@ -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()
@@ -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()
@@ -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()

0 comments on commit 6ff252d

Please sign in to comment.