Fix #7749 (Book details panel does not always display correct selected book)

This commit is contained in:
Kovid Goyal 2010-11-30 19:12:24 -07:00
parent ba831d21e3
commit 4ab34dff95

View File

@ -208,8 +208,9 @@ class BookInfo(QWebView):
rows = u'\n'.join([u'<tr><td valign="top"><b>%s:</b></td><td valign="top">%s</td></tr>'%(k,t) for
k, t in rows])
comments = data.get(_('Comments'), '')
if comments and comments != u'None':
self.renderer.queue.put((rows, comments))
if not comments or comments == u'None':
comments = ''
self.renderer.queue.put((rows, comments))
self._show_data(rows, '')