mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
Apply project formatting to random-reveal warning construction
This commit is contained in:
parent
e32bd364bd
commit
6fab4410d0
1 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue