fix select round after closing

This commit is contained in:
Maxime Réaux 2026-02-13 08:01:26 +01:00
parent d869017646
commit 42eb625ef6
2 changed files with 7 additions and 1 deletions

View file

@ -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"])