prevent traceback when atom entry has no title

This commit is contained in:
Yann Leboulanger 2010-05-25 09:46:12 +02:00
parent 42579191b4
commit 259e26ba7b
1 changed files with 9 additions and 6 deletions

View File

@ -94,6 +94,7 @@ class AtomWindow:
u'<small>%s</small>' % \
gobject.markup_escape_text(newentry.feed_tagline))
if newentry.title:
if newentry.uri is not None:
self.entry_title_label.set_markup(
u'<span foreground="blue" underline="single">%s</span>' % \
@ -101,6 +102,8 @@ class AtomWindow:
else:
self.entry_title_label.set_markup(
gobject.markup_escape_text(newentry.title))
else:
self.entry_title_label.set_markup('')
self.last_modified_label.set_text(newentry.updated)