mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7749 (Book details panel does not always display correct selected book)
This commit is contained in:
parent
ba831d21e3
commit
4ab34dff95
@ -208,7 +208,8 @@ 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
|
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])
|
k, t in rows])
|
||||||
comments = data.get(_('Comments'), '')
|
comments = data.get(_('Comments'), '')
|
||||||
if comments and comments != u'None':
|
if not comments or comments == u'None':
|
||||||
|
comments = ''
|
||||||
self.renderer.queue.put((rows, comments))
|
self.renderer.queue.put((rows, comments))
|
||||||
self._show_data(rows, '')
|
self._show_data(rows, '')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user