Add comment

This commit is contained in:
Jonathan Corwin 2012-08-25 17:50:26 +01:00
parent c965905a30
commit 4be69969fd

View File

@ -262,6 +262,11 @@ class Renderer(object):
if same_thread: if same_thread:
self.display.text(raw_html) self.display.text(raw_html)
else: else:
# This exists for https://bugs.launchpad.net/openlp/+bug/1016843
# For unknown reasons if evaluateJavaScript is called
# from the themewizard, then it causes a crash on
# Windows if there are many items in the service to re-render.
# Calling it via a signal seems to workaround the problem.
Receiver.send_message(u'renderer_display_text', raw_html) Receiver.send_message(u'renderer_display_text', raw_html)
preview = self.display.preview() preview = self.display.preview()
return preview return preview