mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
leave todo comment
This commit is contained in:
parent
97b2b5ecf4
commit
d5e4b0cbf1
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
// If selection is cleared while multiple cards are selected, there might still be items in the selection
|
||||||
// when this itemChange triggers.
|
// when this itemChange triggers.
|
||||||
// Delay empty check by 1 frame to ensure the entire selection is cleared first.
|
// 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] {
|
QTimer::singleShot(1, this, [this] {
|
||||||
if (scene() && !hasCardsOwnedBy(scene()->selectedItems(), owner)) {
|
if (scene() && !hasCardsOwnedBy(scene()->selectedItems(), owner)) {
|
||||||
owner->setCardMenu(nullptr);
|
owner->setCardMenu(nullptr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue