Fix bug in settings release

bzr-revno: 2158
This commit is contained in:
Andreas Preikschat 2013-01-23 21:33:57 +00:00 committed by Tim Bentley
commit a4a2e00cff

View File

@ -102,8 +102,7 @@ def set_media_players(players_list, overridden_player=u'auto'):
"""
log.debug(u'set_media_players')
players = u','.join(players_list)
if Settings().value(u'media/override player', QtCore.Qt.Unchecked) == QtCore.Qt.Checked and \
overridden_player != u'auto':
if Settings().value(u'media/override player') == QtCore.Qt.Checked and overridden_player != u'auto':
players = players.replace(overridden_player, u'[%s]' % overridden_player)
Settings().setValue(u'media/players', players)