forked from openlp/openlp
Possibly found the cause of our double-config-file problems.
This commit is contained in:
parent
a9443ba08e
commit
4bfc1ec208
@ -123,9 +123,7 @@ class LanguageManager(object):
|
|||||||
language = unicode(qm_list[action_name])
|
language = unicode(qm_list[action_name])
|
||||||
if LanguageManager.auto_language:
|
if LanguageManager.auto_language:
|
||||||
language = u'[%s]' % language
|
language = u'[%s]' % language
|
||||||
# This needs to be here for the setValue to work
|
QtCore.QSettings().setValue(
|
||||||
settings = QtCore.QSettings(u'OpenLP', u'OpenLP')
|
|
||||||
settings.setValue(
|
|
||||||
u'general/language', QtCore.QVariant(language))
|
u'general/language', QtCore.QVariant(language))
|
||||||
log.info(u'Language file: \'%s\' written to conf file' % language)
|
log.info(u'Language file: \'%s\' written to conf file' % language)
|
||||||
if message:
|
if message:
|
||||||
|
Loading…
Reference in New Issue
Block a user