From c33106eab4c9448078978a4674bc8479fa6ecfd3 Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:31:16 +0200 Subject: [PATCH] [UI] Remove @ from playerName since only the auto complete list cares about it. (#6205) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 5 minutes Took 37 seconds Co-authored-by: Lukas BrĂ¼bach --- cockatrice/src/game/game_event_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/game/game_event_handler.cpp b/cockatrice/src/game/game_event_handler.cpp index 2637df50f..e86fe1331 100644 --- a/cockatrice/src/game/game_event_handler.cpp +++ b/cockatrice/src/game/game_event_handler.cpp @@ -248,8 +248,8 @@ void GameEventHandler::eventGameStateChanged(const Event_GameStateChanged &event const ServerInfo_Player &playerInfo = event.player_list(i); const ServerInfo_PlayerProperties &prop = playerInfo.properties(); const int playerId = prop.player_id(); - QString playerName = "@" + QString::fromStdString(prop.user_info().name()); - emit addPlayerToAutoCompleteList(playerName); + QString playerName = QString::fromStdString(prop.user_info().name()); + emit addPlayerToAutoCompleteList("@" + playerName); if (prop.spectator()) { if (!game->getPlayerManager()->getSpectators().contains(playerId)) { game->getPlayerManager()->addSpectator(playerId, prop);