← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~googol/openlp/presentation-fix into lp:openlp

 

Andreas Preikschat has proposed merging lp:~googol/openlp/presentation-fix into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~googol/openlp/presentation-fix/+merge/175270

Hello,

- fixed presentation file mask
-- 
https://code.launchpad.net/~googol/openlp/presentation-fix/+merge/175270
Your team OpenLP Core is requested to review the proposed merge of lp:~googol/openlp/presentation-fix into lp:openlp.
=== modified file 'openlp/plugins/presentations/lib/mediaitem.py'
--- openlp/plugins/presentations/lib/mediaitem.py	2013-06-20 19:12:55 +0000
+++ openlp/plugins/presentations/lib/mediaitem.py	2013-07-17 12:40:35 +0000
@@ -80,15 +80,15 @@
         """
         Build the list of file extensions to be used in the Open file dialog.
         """
-        file_type_list = u''
+        file_type_string = 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_list += u'*.%s ' % file_type
+                    if file_type not in file_type_string:
+                        file_type_string += u'*.%s ' % file_type
                         self.service_manager.supported_suffixes(file_type)
-        self.on_new_file_masks = translate('PresentationPlugin.MediaItem', 'Presentations (%s)') % file_type_list
+        self.on_new_file_masks = translate('PresentationPlugin.MediaItem', 'Presentations (%s)') % file_type_string
 
     def required_icons(self):
         """


Follow ups