From 77f49258f998ecaa926dc9f48c2c2fb8439bbe34 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 8 Sep 2012 19:29:05 +0100 Subject: [PATCH] Fix duplicate ifs --- openlp/core/ui/media/mediacontroller.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/openlp/core/ui/media/mediacontroller.py b/openlp/core/ui/media/mediacontroller.py index 3a081e23c..71debab48 100644 --- a/openlp/core/ui/media/mediacontroller.py +++ b/openlp/core/ui/media/mediacontroller.py @@ -347,12 +347,11 @@ class MediaController(object): autoplay = True if autoplay: if not self.video_play([controller]): - if not self.video_play([controller]): - critical_error_message_box( - translate('MediaPlugin.MediaItem', 'Unsupported File'), - unicode(translate('MediaPlugin.MediaItem', - 'Unsupported File'))) - return False + critical_error_message_box( + translate('MediaPlugin.MediaItem', 'Unsupported File'), + unicode(translate('MediaPlugin.MediaItem', + 'Unsupported File'))) + return False self.set_controls_visible(controller, True) log.debug(u'use %s controller' % self.curDisplayMediaPlayer[display]) return True