fix select round after closing
This commit is contained in:
parent
d869017646
commit
42eb625ef6
2 changed files with 7 additions and 1 deletions
|
|
@ -238,6 +238,10 @@ class View(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
|
||||
def display_wars_tree(self, wars: List[WarDTO]) -> None:
|
||||
tree = self.warsTree
|
||||
try:
|
||||
tree.currentItemChanged.disconnect()
|
||||
except TypeError:
|
||||
pass
|
||||
tree.clear()
|
||||
tree.setColumnCount(1)
|
||||
tree.setHeaderLabels(["Wars"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue