forked from openlp/openlp
using QtCore.QVariant object as a second argument in settings.value method
This commit is contained in:
parent
6ec167ed83
commit
271c4ef1a4
@ -201,7 +201,7 @@ class Manager(object):
|
||||
urlquote(unicode(settings.value(u'db database').toString())))
|
||||
if db_type == u'mysql':
|
||||
db_encoding = unicode(
|
||||
settings.value(u'db encoding', u'utf8').toString())
|
||||
settings.value(u'db encoding', QtCore.QVariant(u'utf8')).toString())
|
||||
self.db_url += u'?charset=%s' % (urlquote(db_encoding))
|
||||
settings.endGroup()
|
||||
if upgrade_mod:
|
||||
|
Loading…
Reference in New Issue
Block a user