char select combo bug fix
This commit is contained in:
parent
1aac0f982b
commit
7f4043546e
@ -24,7 +24,7 @@ class charselect(QtGui.QWidget):
|
||||
def __init__(self, parent):
|
||||
super(charselect, self).__init__(parent)
|
||||
self.parent = parent
|
||||
self.populated = 0
|
||||
# self.populated = 0
|
||||
self.page = 0
|
||||
self.dropdownloaded = 0
|
||||
self.image = QtGui.QLabel(self)
|
||||
@ -88,14 +88,15 @@ class charselect(QtGui.QWidget):
|
||||
self.buttons[ind].setPixmap(QtGui.QPixmap(pixmap))
|
||||
|
||||
def populateCharacterDropdown(self):
|
||||
self.charDropdown.clear()
|
||||
for char in self.charlist:
|
||||
self.charDropdown.addItem(char[0])
|
||||
self.populated = 1
|
||||
# self.populated = 1
|
||||
|
||||
def setCharList(self, charlist):
|
||||
self.charlist = charlist
|
||||
self.showCharPage()
|
||||
if self.populated == 0:
|
||||
# if self.populated == 0:
|
||||
self.populateCharacterDropdown()
|
||||
|
||||
def nextPageButton(self):
|
||||
|
Loading…
Reference in New Issue
Block a user