mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 19:43:55 -07:00
Fix multiple "Selected Cards" in Menu on MacOS (#5288)
This commit is contained in:
parent
07ee271478
commit
e1ba39c437
1 changed files with 3 additions and 1 deletions
|
|
@ -3970,8 +3970,10 @@ void Player::setCardMenu(QMenu *menu)
|
||||||
{
|
{
|
||||||
if (aCardMenu != nullptr) {
|
if (aCardMenu != nullptr) {
|
||||||
aCardMenu->setEnabled(menu != nullptr);
|
aCardMenu->setEnabled(menu != nullptr);
|
||||||
|
if (menu) {
|
||||||
aCardMenu->setMenu(menu);
|
aCardMenu->setMenu(menu);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenu *Player::getCardMenu() const
|
QMenu *Player::getCardMenu() const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue