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',
|
||||
QtCore.QVariant(u'')).toString()
|
||||
# cPickle only accepts str not unicode strings
|
||||
user_tags = cPickle.loads(str(unicode(user_expands).encode(u'utf8')))
|
||||
# If we have some user ones added them as well
|
||||
for t in user_tags:
|
||||
DisplayTags.add_html_tag(t)
|
||||
user_expands_string = str(unicode(user_expands).encode(u'utf8'))
|
||||
if user_expands_string:
|
||||
user_tags = cPickle.loads(user_expand_string)
|
||||
# If we have some user ones added them as well
|
||||
for t in user_tags:
|
||||
DisplayTags.add_html_tag(t)
|
||||
self.selected = -1
|
||||
|
||||
def setupUi(self):
|
||||
|
Loading…
Reference in New Issue
Block a user