Permalink
Browse files

Avoid errors when querying tooltips of separators

  • Loading branch information...
1 parent 7a44f05 commit 24bf4afaad2c7158c2396c620c35c08bfb6e2c37 @thp thp committed Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gpodder/gtkui/main.py
@@ -1247,7 +1247,7 @@ def on_treeview_query_tooltip(self, treeview, x, y, keyboard_tooltip, tooltip):
return False
elif role == TreeViewHelper.ROLE_PODCASTS:
channel = model.get_value(iter, PodcastListModel.C_CHANNEL)
- if channel is None:
+ if channel is None or not hasattr(channel, 'title'):
return False
error_str = model.get_value(iter, PodcastListModel.C_ERROR)
if error_str:

0 comments on commit 24bf4af

Please sign in to comment.