From d5e4b0cbf1d656a0b16a533ff2e223336d31b339 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 23 Mar 2025 04:01:05 -0700 Subject: [PATCH] leave todo comment --- cockatrice/src/game/cards/card_item.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/game/cards/card_item.cpp b/cockatrice/src/game/cards/card_item.cpp index ee77a48ac..4fb85f76f 100644 --- a/cockatrice/src/game/cards/card_item.cpp +++ b/cockatrice/src/game/cards/card_item.cpp @@ -496,6 +496,7 @@ QVariant CardItem::itemChange(GraphicsItemChange change, const QVariant &value) // If selection is cleared while multiple cards are selected, there might still be items in the selection // when this itemChange triggers. // Delay empty check by 1 frame to ensure the entire selection is cleared first. + // TODO: This is a temp fix that still leaves bugs (see #5764). We need to rework card menu logic QTimer::singleShot(1, this, [this] { if (scene() && !hasCardsOwnedBy(scene()->selectedItems(), owner)) { owner->setCardMenu(nullptr);