From 9be9b0c05ad9911e12eb878a9c44621692da9a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sun, 7 Jun 2026 16:12:05 +0200 Subject: [PATCH] Reintroduce clearCardsToDelete check. Took 3 minutes --- cockatrice/src/game/player/player_dialogs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/game/player/player_dialogs.cpp b/cockatrice/src/game/player/player_dialogs.cpp index 3a78fad1f..416c551b3 100644 --- a/cockatrice/src/game/player/player_dialogs.cpp +++ b/cockatrice/src/game/player/player_dialogs.cpp @@ -253,7 +253,7 @@ void PlayerDialogs::onSetPTDialogRequested(const QString &oldPT) oldPT, &ok); emit requestDialogSemaphore(false); - if (!ok) { // player->clearCardsToDelete() || + if (!ok || player->getLogic()->clearCardsToDelete()) { return; } @@ -270,7 +270,7 @@ void PlayerDialogs::onSetAnnotationDialogRequested(const QString &oldAnnotation) dialog->setTextValue(oldAnnotation); bool ok = dialog->exec(); emit requestDialogSemaphore(false); - if (!ok) { // player->clearCardsToDelete() || + if (!ok || player->getLogic()->clearCardsToDelete()) { return; } QString annotation = dialog->textValue().left(MAX_NAME_LENGTH); @@ -288,7 +288,7 @@ void PlayerDialogs::onSetCardCounterDialogRequested(int counterId, const QString int ok = dialog.exec(); emit requestDialogSemaphore(false); - if (!ok) { // player->clearCardsToDelete() || + if (!ok || player->getLogic()->clearCardsToDelete()) { return; } playerActions->actSetCardCounter(player->getGameScene()->selectedCards(), counterId, dialog.textValue());