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")
|
effectsList.insert(0, "No effect")
|
||||||
self.boxEffects.addItems(effectsList)
|
self.boxEffects.addItems(effectsList)
|
||||||
|
|
||||||
if isinstance(charName, str):
|
if isinstance(charName, QtCore.QString):
|
||||||
charName = unicode(charName.lower())
|
charName = unicode(charName)
|
||||||
elif isinstance(charName, QtCore.QString):
|
|
||||||
charName = unicode(charName.toLower())
|
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 = 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")
|
self.charShowname = ini.read_ini(BASE_PATH + 'characters/' + charName + '/char.ini', "options", "showname")
|
||||||
if not self.charShowname == "":
|
if not self.charShowname == "":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user