forked from openlp/openlp
Fix first time initialiation
This commit is contained in:
parent
c4891f27ed
commit
39ff8e2bc4
|
@ -57,10 +57,12 @@ class DisplayTagTab(SettingsTab):
|
||||||
user_expands = QtCore.QSettings().value(u'displayTags/html_tags',
|
user_expands = QtCore.QSettings().value(u'displayTags/html_tags',
|
||||||
QtCore.QVariant(u'')).toString()
|
QtCore.QVariant(u'')).toString()
|
||||||
# cPickle only accepts str not unicode strings
|
# cPickle only accepts str not unicode strings
|
||||||
user_tags = cPickle.loads(str(unicode(user_expands).encode(u'utf8')))
|
user_expands_string = str(unicode(user_expands).encode(u'utf8'))
|
||||||
# If we have some user ones added them as well
|
if user_expands_string:
|
||||||
for t in user_tags:
|
user_tags = cPickle.loads(user_expand_string)
|
||||||
DisplayTags.add_html_tag(t)
|
# If we have some user ones added them as well
|
||||||
|
for t in user_tags:
|
||||||
|
DisplayTags.add_html_tag(t)
|
||||||
self.selected = -1
|
self.selected = -1
|
||||||
|
|
||||||
def setupUi(self):
|
def setupUi(self):
|
||||||
|
|
Loading…
Reference in New Issue