From 46e35ead2816b4bbe8a1a05a5f3f656bf194baa5 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Tue, 24 Aug 2010 18:28:13 +0100 Subject: [PATCH] Spotted video bug --- openlp/core/ui/maindisplay.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index 2e9a4f205..068bb1025 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -286,8 +286,10 @@ class MainDisplay(DisplayWidget): log.debug(u'preview') # Wait for the fade to finish before geting the preview. # Important otherwise preview will have incorrect text if at all ! - if self.serviceItem.themedata.display_slideTransition: - while self.frame.evaluateJavaScript(u'show_text_complete()').toString() == u'false': + if self.serviceItem.themedata and \ + self.serviceItem.themedata.display_slideTransition: + while self.frame.evaluateJavaScript(u'show_text_complete()') \ + .toString() == u'false': Receiver.send_message(u'openlp_process_events') # Wait for the webview to update before geting the preview. # Important otherwise first preview will miss the background !