Possibly found the cause of our double-config-file problems.

This commit is contained in:
Raoul Snyman 2011-03-24 19:23:39 +02:00
parent a9443ba08e
commit 4bfc1ec208

View File

@ -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: