mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Connect player->openDeckEditor signal directly in the player constructor
Took 6 minutes
This commit is contained in:
parent
c344b40a71
commit
2de650f4ba
2 changed files with 2 additions and 2 deletions
|
|
@ -43,6 +43,8 @@ Player::Player(const ServerInfo_User &info, int _id, bool _local, bool _judge, T
|
|||
|
||||
connect(this, &Player::deckChanged, playerMenu, &PlayerMenu::enableOpenInDeckEditorAction);
|
||||
connect(this, &Player::deckChanged, playerMenu, &PlayerMenu::populatePredefinedTokensMenu);
|
||||
|
||||
connect(this, &Player::openDeckEditor, game, &TabGame::openDeckEditor);
|
||||
}
|
||||
|
||||
void Player::initializeZones()
|
||||
|
|
|
|||
|
|
@ -62,8 +62,6 @@ public:
|
|||
Player *addPlayer(int playerId, const ServerInfo_User &info, TabGame *game)
|
||||
{
|
||||
auto *newPlayer = new Player(info, playerId, isLocalPlayer(playerId), isJudge(), game);
|
||||
// TODO
|
||||
// connect(newPlayer, &Player::openDeckEditor, game, &TabGame::openDeckEditor);
|
||||
players.insert(playerId, newPlayer);
|
||||
emit playerAdded(newPlayer);
|
||||
emit playerCountChanged();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue