Fixed an error popup message when trying to fetch skills with no character selected in character editor - api tab (by default select the first character)

This commit is contained in:
HomeWorld
2011-01-26 11:00:04 +02:00
parent 8796d62408
commit ce437184c1

View File

@@ -612,12 +612,17 @@ class APIView (wx.Panel):
for charName in list:
self.charList.InsertStringItem(sys.maxint, charName)
self.charList.SetItemState(0,wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED)
self.charList.SetColumnWidth(0, wx.LIST_AUTOSIZE_USEHEADER)
self.charList.Show()
self.btnFetchCharList.Hide()
self.btnFetchSkills.Show()
self.Layout()
self.charList.SetFocus()
def fetchSkills(self, event):
item = self.charList.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED)
charName = self.charList.GetItemText(item)