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

@@ -20,6 +20,7 @@
import eos.db
import eos.types
import copy
import service
class Character():
instance = None
@@ -42,7 +43,8 @@ class Character():
baseChars = [eos.types.Character.getAll0(), eos.types.Character.getAll5()]
# Flush incase all0 & all5 weren't in the db yet
eos.db.commit()
return map(lambda c: (c.ID, c.name), eos.db.getCharacterList())
sFit = service.Fit.getInstance()
return map(lambda c: (c.ID, c.name, c == sFit.character), eos.db.getCharacterList())
def getSkillGroups(self):
cat = eos.db.getCategory(16)