mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[Game] Use non-blocking popup for zone context menus (#7452)
Replace QMenu::exec with popup() for zone context menus to avoid blocking the scene. Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
95f02ac0a1
commit
56c456414b
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ void CardZone::mouseDoubleClickEvent(QGraphicsSceneMouseEvent * /*event*/)
|
||||||
bool CardZone::showContextMenu(const QPoint &screenPos)
|
bool CardZone::showContextMenu(const QPoint &screenPos)
|
||||||
{
|
{
|
||||||
if (menu) {
|
if (menu) {
|
||||||
menu->exec(screenPos);
|
menu->popup(screenPos);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue