From 6fab4410d07c4a5afde266a5717e3bec6f454bb1 Mon Sep 17 00:00:00 2001 From: Bryce! Date: Wed, 4 Nov 2026 15:56:45 -0500 Subject: [PATCH] Apply project formatting to random-reveal warning construction --- cockatrice/src/game_graphics/player/menu/hand_menu.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/game_graphics/player/menu/hand_menu.cpp b/cockatrice/src/game_graphics/player/menu/hand_menu.cpp index cdb30007d..1592a948b 100644 --- a/cockatrice/src/game_graphics/player/menu/hand_menu.cpp +++ b/cockatrice/src/game_graphics/player/menu/hand_menu.cpp @@ -317,12 +317,13 @@ void HandMenu::onRandomHandRevealFailed(bool unsupported) const QString text = unsupported ? tr("This server does not support revealing multiple random cards. No cards were revealed.") : tr("The random reveal could not be completed. The hand or recipient may have changed."); - auto *message = new QMessageBox(QMessageBox::Warning, tr("Reveal Random Hand Cards"), text, QMessageBox::Ok, - dialogParent()); + auto *message = + new QMessageBox(QMessageBox::Warning, tr("Reveal Random Hand Cards"), text, QMessageBox::Ok, dialogParent()); message->setAttribute(Qt::WA_DeleteOnClose); connect(this, &QObject::destroyed, message, &QDialog::reject); connect(player->getLogic()->getPlayerActions(), &QObject::destroyed, message, &QDialog::reject); - if (auto *client = player->getLogic()->getGame()->getClientForPlayer(player->getLogic()->getPlayerInfo()->getId())) { + if (auto *client = + player->getLogic()->getGame()->getClientForPlayer(player->getLogic()->getPlayerInfo()->getId())) { connect(client, &QObject::destroyed, message, &QDialog::reject); } message->open();