convert charname to lowercase
This commit is contained in:
parent
5cd497c68a
commit
35adc53944
10
gameview.py
10
gameview.py
@ -2470,13 +2470,13 @@ class GUI(QtGui.QWidget):
|
||||
effectsList.insert(0, "No effect")
|
||||
self.boxEffects.addItems(effectsList)
|
||||
|
||||
if isinstance(charName, str):
|
||||
charName = unicode(charName.lower())
|
||||
elif isinstance(charName, QtCore.QString):
|
||||
charName = unicode(charName.toLower())
|
||||
if isinstance(charName, QtCore.QString):
|
||||
charName = unicode(charName)
|
||||
|
||||
charName = charName.lower() # Just use the folder name
|
||||
|
||||
#self.charName = ini.read_ini(BASE_PATH + 'characters/' + charName + '/char.ini', "options", "name", charName.decode('utf-8').lower()
|
||||
self.charName = charName # Just use the folder name
|
||||
self.charName = charName
|
||||
|
||||
self.charShowname = ini.read_ini(BASE_PATH + 'characters/' + charName + '/char.ini', "options", "showname")
|
||||
if not self.charShowname == "":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user