openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #20798
[Merge] lp:~trb143/openlp/junefixes into lp:openlp
Tim Bentley has proposed merging lp:~trb143/openlp/junefixes into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~trb143/openlp/junefixes/+merge/170684
Fix for presentation type
--
https://code.launchpad.net/~trb143/openlp/junefixes/+merge/170684
Your team OpenLP Core is requested to review the proposed merge of lp:~trb143/openlp/junefixes into lp:openlp.
=== modified file 'openlp/plugins/presentations/lib/mediaitem.py'
--- openlp/plugins/presentations/lib/mediaitem.py 2013-05-24 20:17:47 +0000
+++ openlp/plugins/presentations/lib/mediaitem.py 2013-06-20 19:15:32 +0000
@@ -80,15 +80,15 @@
"""
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):
"""
Follow ups