From f17ae4dcb36894b56d46f7d96c7a6fae866bf5a9 Mon Sep 17 00:00:00 2001 From: Jonathan Corwin Date: Tue, 20 Oct 2009 23:36:08 +0100 Subject: [PATCH] Fix a couple of Impress load/reload bugs --- openlp/plugins/presentations/lib/messagelistener.py | 3 +-- openlp/plugins/presentations/lib/presentationcontroller.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/presentations/lib/messagelistener.py b/openlp/plugins/presentations/lib/messagelistener.py index 882ec2fd2..6a1c611f5 100644 --- a/openlp/plugins/presentations/lib/messagelistener.py +++ b/openlp/plugins/presentations/lib/messagelistener.py @@ -74,8 +74,7 @@ class MessageListener(object): return if not self.controller.is_loaded(): self.controller.load_presentation(self.controller.filepath) - else: - self.controller.start_presentation() + self.controller.start_presentation() if self.controller.slidenumber > 1: self.controller.goto_slide(self.controller.slidenumber) diff --git a/openlp/plugins/presentations/lib/presentationcontroller.py b/openlp/plugins/presentations/lib/presentationcontroller.py index 977c9c264..53c6e84d0 100644 --- a/openlp/plugins/presentations/lib/presentationcontroller.py +++ b/openlp/plugins/presentations/lib/presentationcontroller.py @@ -198,6 +198,8 @@ class PresentationController(object): recent than the powerpoint """ lastimage = self.get_slide_preview_file(self.get_slide_count()) + if lastimage is None: + return False if not os.path.isfile(lastimage): return False imgdate = os.stat(lastimage).st_mtime