aboutsummaryrefslogtreecommitdiff
path: root/gui/main_window.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main_window.py')
-rw-r--r--gui/main_window.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/main_window.py b/gui/main_window.py
index d6ad53d..536e7c4 100644
--- a/gui/main_window.py
+++ b/gui/main_window.py
@@ -11,7 +11,7 @@ class MainWindow(QMainWindow):
cursor: mariadb.Cursor = None
db: mariadb.Connection = None
menu_bar: QMenuBar
- calendar_id: int
+ calendar_id: int = 1
_tab_drivers: TabDrivers
_tab_teams: TabTeams
@@ -80,6 +80,7 @@ class MainWindow(QMainWindow):
def switch_season(self):
self.calendar_id = self.sender().property("id")
+ self._tab_teams.set_calendar_id(self.calendar_id)
self._tab_races.set_calendar_id(self.calendar_id)
def __init__(self, cursor: mariadb.Cursor, db: mariadb.Connection, parent=None):