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):
|
def __init__(self, parent):
|
||||||
super(charselect, self).__init__(parent)
|
super(charselect, self).__init__(parent)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.populated = 0
|
# self.populated = 0
|
||||||
self.page = 0
|
self.page = 0
|
||||||
self.dropdownloaded = 0
|
self.dropdownloaded = 0
|
||||||
self.image = QtGui.QLabel(self)
|
self.image = QtGui.QLabel(self)
|
||||||
@ -88,15 +88,16 @@ class charselect(QtGui.QWidget):
|
|||||||
self.buttons[ind].setPixmap(QtGui.QPixmap(pixmap))
|
self.buttons[ind].setPixmap(QtGui.QPixmap(pixmap))
|
||||||
|
|
||||||
def populateCharacterDropdown(self):
|
def populateCharacterDropdown(self):
|
||||||
|
self.charDropdown.clear()
|
||||||
for char in self.charlist:
|
for char in self.charlist:
|
||||||
self.charDropdown.addItem(char[0])
|
self.charDropdown.addItem(char[0])
|
||||||
self.populated = 1
|
# self.populated = 1
|
||||||
|
|
||||||
def setCharList(self, charlist):
|
def setCharList(self, charlist):
|
||||||
self.charlist = charlist
|
self.charlist = charlist
|
||||||
self.showCharPage()
|
self.showCharPage()
|
||||||
if self.populated == 0:
|
# if self.populated == 0:
|
||||||
self.populateCharacterDropdown()
|
self.populateCharacterDropdown()
|
||||||
|
|
||||||
def nextPageButton(self):
|
def nextPageButton(self):
|
||||||
self.page += 1
|
self.page += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user