[TabGame] Don't create replay dock if not replay tab (#6527)

* [TabGame] Don't create replay dock if not replay tab

* use replayDock to determine if replay tab

* null check replayManager in dtor
This commit is contained in:
RickyRister 2026-01-16 09:45:10 -08:00 committed by GitHub
parent 84483c56d7
commit c7c7bf550a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 14 deletions

View file

@ -58,7 +58,7 @@ class TabGame : public Tab
private:
AbstractGame *game;
const UserListProxy *userListProxy;
ReplayManager *replayManager;
ReplayManager *replayManager = nullptr;
QStringList gameTypes;
QCompleter *completer;
QStringList autocompleteUserList;