This commit is contained in:
Kovid Goyal 2011-01-11 08:35:46 -07:00
parent 187331af81
commit 1468e17c17

View File

@ -279,7 +279,7 @@ class Document(QWebPage): # {{{
@pyqtSignature("")
def init_hyphenate(self):
if self.hyphenate:
if self.hyphenate and getattr(self, 'loaded_lang', ''):
self.javascript('do_hyphenation("%s")'%self.loaded_lang)
def after_load(self):