Fixed quirks & added numeric event because why not

This commit is contained in:
Dpeta 2021-03-23 22:58:58 +01:00
parent d39caf1488
commit ea043c2a94
2 changed files with 4 additions and 3 deletions

View file

@ -41,7 +41,7 @@ class PesterQuirkList(QtWidgets.QTreeWidget):
self.mainwindow = mainwindow self.mainwindow = mainwindow
self.setStyleSheet("background:black; color:white;") self.setStyleSheet("background:black; color:white;")
self.itemChanged[QTreeWidgetItem, int].connect(self.changeCheckState) self.itemChanged[QtWidgets.QTreeWidgetItem, int].connect(self.changeCheckState)
for q in mainwindow.userprofile.quirks: for q in mainwindow.userprofile.quirks:
item = PesterQuirkItem(q) item = PesterQuirkItem(q)
@ -291,7 +291,7 @@ class PesterQuirkTypes(QtWidgets.QDialog):
self.next = QtWidgets.QPushButton("Next", self) self.next = QtWidgets.QPushButton("Next", self)
self.next.setDefault(True) self.next.setDefault(True)
self.__next__.clicked.connect(self.nextPage) self.next.clicked.connect(self.nextPage)
self.back = QtWidgets.QPushButton("Back", self) self.back = QtWidgets.QPushButton("Back", self)
self.back.setEnabled(False) self.back.setEnabled(False)
self.back.clicked.connect(self.backPage) self.back.clicked.connect(self.backPage)
@ -300,7 +300,7 @@ class PesterQuirkTypes(QtWidgets.QDialog):
layout_2 = QtWidgets.QHBoxLayout() layout_2 = QtWidgets.QHBoxLayout()
layout_2.setAlignment(QtCore.Qt.AlignRight) layout_2.setAlignment(QtCore.Qt.AlignRight)
layout_2.addWidget(self.back) layout_2.addWidget(self.back)
layout_2.addWidget(self.__next__) layout_2.addWidget(self.next)
layout_2.addSpacing(5) layout_2.addSpacing(5)
layout_2.addWidget(self.cancel) layout_2.addWidget(self.cancel)

View file

@ -125,6 +125,7 @@ numeric_events = {
"393": "users", "393": "users",
"394": "endofusers", "394": "endofusers",
"395": "nousers", "395": "nousers",
"396": "hosthidden",
"401": "nosuchnick", "401": "nosuchnick",
"402": "nosuchserver", "402": "nosuchserver",
"403": "nosuchchannel", "403": "nosuchchannel",