forked from openlp/openlp
Fix traceback on Mac tests
This commit is contained in:
parent
38a310a1aa
commit
949231a35f
@ -42,7 +42,7 @@ from openlp.core.display.screens import ScreenList
|
||||
from openlp.plugins.presentations.lib.presentationcontroller import PresentationController, PresentationDocument, \
|
||||
TextType
|
||||
|
||||
|
||||
# Load the XSlideShowListener class so we can inherit from it
|
||||
if is_win():
|
||||
from win32com.client import Dispatch
|
||||
import pywintypes
|
||||
@ -75,6 +75,8 @@ else:
|
||||
uno_available = True
|
||||
except ImportError:
|
||||
uno_available = False
|
||||
class SlideShowListenerImport():
|
||||
pass
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -145,8 +145,8 @@ class PowerpointDocument(PresentationDocument):
|
||||
try:
|
||||
if not self.controller.process:
|
||||
self.controller.start_process()
|
||||
self.controller.process.Presentations.Open(str(self.file_path), False, False, False)
|
||||
self.presentation = self.controller.process.Presentations(self.controller.process.Presentations.Count)
|
||||
self.presentation = self.controller.process.Presentations.Open(str(self.file_path), False, False, False)
|
||||
log.debug('Loaded presentation %s' % self.presentation.FullName)
|
||||
self.create_thumbnails()
|
||||
self.create_titles_and_notes()
|
||||
# Make sure powerpoint doesn't steal focus, unless we're on a single screen setup
|
||||
|
Loading…
Reference in New Issue
Block a user