diff --git a/openlp/core/utils/__init__.py b/openlp/core/utils/__init__.py index 0a594b5cf..bfd0b0740 100644 --- a/openlp/core/utils/__init__.py +++ b/openlp/core/utils/__init__.py @@ -346,9 +346,9 @@ def get_uno_instance(resolver): """ log.debug(u'get UNO Desktop Openoffice - resolve') if UNO_CONNECTION_TYPE == u'pipe': - return resolver.resolve(u'uno:pipe,name=openlp_pipe; urp;StarOffice.ComponentContext') + return resolver.resolve(u'uno:pipe,name=openlp_pipe;urp;StarOffice.ComponentContext') else: - return resolver.resolve(u'uno:socket,host=localhost,port=2002; urp;StarOffice.ComponentContext') + return resolver.resolve(u'uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext') def format_time(text, local_time): diff --git a/openlp/plugins/presentations/lib/mediaitem.py b/openlp/plugins/presentations/lib/mediaitem.py index fcfc495ed..cef30a498 100644 --- a/openlp/plugins/presentations/lib/mediaitem.py +++ b/openlp/plugins/presentations/lib/mediaitem.py @@ -80,15 +80,15 @@ class PresentationMediaItem(MediaManagerItem): """ Build the list of file extensions to be used in the Open file dialog. """ - file_type = u'' + file_type_list = u'' for controller in self.controllers: if self.controllers[controller].enabled(): file_types = self.controllers[controller].supports + self.controllers[controller].also_supports for file_type in file_types: if file_type.find(file_type) == -1: - file_type += u'*.%s ' % file_type + file_type_list += u'*.%s ' % file_type self.service_manager.supported_suffixes(file_type) - self.on_new_file_masks = translate('PresentationPlugin.MediaItem', 'Presentations (%s)') % file_type + self.on_new_file_masks = translate('PresentationPlugin.MediaItem', 'Presentations (%s)') % file_type_list def required_icons(self): """