Fix a couple of Impress load/reload bugs

This commit is contained in:
Jonathan Corwin 2009-10-20 23:36:08 +01:00
parent f26000ab50
commit f17ae4dcb3
2 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,6 @@ class MessageListener(object):
return return
if not self.controller.is_loaded(): if not self.controller.is_loaded():
self.controller.load_presentation(self.controller.filepath) self.controller.load_presentation(self.controller.filepath)
else:
self.controller.start_presentation() self.controller.start_presentation()
if self.controller.slidenumber > 1: if self.controller.slidenumber > 1:
self.controller.goto_slide(self.controller.slidenumber) self.controller.goto_slide(self.controller.slidenumber)

View File

@ -198,6 +198,8 @@ class PresentationController(object):
recent than the powerpoint recent than the powerpoint
""" """
lastimage = self.get_slide_preview_file(self.get_slide_count()) lastimage = self.get_slide_preview_file(self.get_slide_count())
if lastimage is None:
return False
if not os.path.isfile(lastimage): if not os.path.isfile(lastimage):
return False return False
imgdate = os.stat(lastimage).st_mtime imgdate = os.stat(lastimage).st_mtime