Parent MoveMenu to CardMenu to fix memory leak on menu rebuild

This commit is contained in:
DawnFire42 2026-08-10 12:46:25 -04:00
parent 919b9d92ac
commit 3e90748f73
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
3 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ class MoveMenu : public QMenu
Q_OBJECT
public:
explicit MoveMenu(PlayerGraphicsItem *player);
explicit MoveMenu(PlayerGraphicsItem *player, QWidget *parent);
void setShortcutsActive();
void retranslateUi();