forked from openlp/openlp
Fix bug in settings release
bzr-revno: 2158
This commit is contained in:
commit
a4a2e00cff
@ -102,8 +102,7 @@ def set_media_players(players_list, overridden_player=u'auto'):
|
|||||||
"""
|
"""
|
||||||
log.debug(u'set_media_players')
|
log.debug(u'set_media_players')
|
||||||
players = u','.join(players_list)
|
players = u','.join(players_list)
|
||||||
if Settings().value(u'media/override player', QtCore.Qt.Unchecked) == QtCore.Qt.Checked and \
|
if Settings().value(u'media/override player') == QtCore.Qt.Checked and overridden_player != u'auto':
|
||||||
overridden_player != u'auto':
|
|
||||||
players = players.replace(overridden_player, u'[%s]' % overridden_player)
|
players = players.replace(overridden_player, u'[%s]' % overridden_player)
|
||||||
Settings().setValue(u'media/players', players)
|
Settings().setValue(u'media/players', players)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user