revert openlp/core/ui/media/mediacontroller.py to prevent merge conflict

This commit is contained in:
M2j 2012-05-01 13:03:31 +02:00
parent 41402ab078
commit eafd3a20ae

View File

@ -127,7 +127,7 @@ class MediaController(object):
invalidMediaPlayers = [mediaPlayer for mediaPlayer in savedPlayers \
if not mediaPlayer in self.mediaPlayers or \
not self.mediaPlayers[mediaPlayer].check_available()]
if invalidMediaPlayers:
if len(invalidMediaPlayers) > 0:
for invalidPlayer in invalidMediaPlayers:
savedPlayers.remove(invalidPlayer)
set_media_players(savedPlayers, overriddenPlayer)
@ -141,7 +141,7 @@ class MediaController(object):
Check if there is a running media Player and do updating stuff (e.g.
update the UI)
"""
if not self.curDisplayMediaPlayer:
if len(self.curDisplayMediaPlayer.keys()) == 0:
self.timer.stop()
else:
for display in self.curDisplayMediaPlayer.keys():