mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #9100 (Edit metadata with comments will hang on debian/testing)
This commit is contained in:
parent
a955efdb3f
commit
4080f5c32c
@ -254,7 +254,8 @@ class EditorWidget(QWebView): # {{{
|
||||
f = QFontInfo(QApplication.font(self)).pixelSize()
|
||||
style = 'font-size: %dpx;' % (f,)
|
||||
|
||||
for body in self.page().mainFrame().documentElement().findAll('body'):
|
||||
# toList() is needed because PyQt on Debian is old/broken
|
||||
for body in self.page().mainFrame().documentElement().findAll('body').toList():
|
||||
body.setAttribute('style', style)
|
||||
self.page().setContentEditable(True)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user