When opening the character editor, always select the currently used

character by default
This commit is contained in:
cncfanatics
2010-10-30 19:37:06 +02:00
parent f125b5d8f9
commit 4655035d77
3 changed files with 15 additions and 7 deletions

View File

@@ -58,7 +58,9 @@ class CharacterSelection(wx.Panel):
activeChar = self.getActiveCharacter()
choice.Clear()
for id, name in cChar.getCharacterList():
charList = cChar.getCharacterList()
cChar.getCharacterList()
for id, name, active in charList:
currId = choice.Append(name, id)
if id == activeChar:
choice.SetSelection(currId)