[games/chessament] src: Fix players page not loading after opening tournament
Manuel Alcaraz Zambrano <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit aa2a935eb1083c6e3c3a7ab8dd101068f7b8b8e5 by Manuel Alcaraz Zambrano.
Committed on 19/07/2026 at 21:39.
Pushed by manuelal into branch 'master'.
Fix players page not loading after opening tournament
With some specific compilers/options, the current view didn't update
when creating or importing a new tournament.
M +2 -1 src/controller.h
https://invent.kde.org/games/chessament/-/commit/aa2a935eb1083c6e3c3a7ab8dd101068f7b8b8e5
diff --git a/src/controller.h b/src/controller.h
index e4bd102..f7c0dc4 100644
--- a/src/controller.h
+++ b/src/controller.h
@@ -40,6 +40,7 @@ class Controller : public QObject
public:
enum class View {
+ None,
Players,
Pairings,
Standings,
@@ -127,7 +128,7 @@ private:
std::unique_ptr<AccountManager> m_accountManager;
- Controller::View m_currentView;
+ Controller::View m_currentView{Controller::View::None};
QString m_error;
std::unique_ptr<QTemporaryFile> m_tempfile;