Fix #9100 (Edit metadata with comments will hang on debian/testing)

This commit is contained in:
Kovid Goyal 2011-02-22 12:34:22 -07:00
parent a955efdb3f
commit 4080f5c32c

View File

@ -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)