Temporary bandaid for top bar breaking various subreddits.

sr_pops has put certain subreddits into the top subreddit list multiple
times. This causes there to be multiple buttons in the srbar. The sort
logic in NavMenu.find_selected short circuited when the lists were of
length 1, but now that they aren't it's dying rightfully on this
attribute not existing on SubredditButton. This is a temporary patch to
help until the sr_pops issue is fixed.
This commit is contained in:
Neil Williams
2013-05-30 18:31:12 -07:00
parent 5e5b535607
commit 21fb8f84be

View File

@@ -352,7 +352,7 @@ class SubredditButton(NavButton):
isselected = (c.site == sr), **kw)
def build(self, base_path = ''):
pass
self.bare_path = ""
def is_selected(self):
return self.isselected