Parent MoveMenu to CardMenu to fix memory leak on menu rebuild

This commit is contained in:
DawnFire42 2026-08-10 12:37:13 -04:00
parent e881c3f437
commit 36c4c5aa51
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
3 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@
#include "../card_menu_action_type.h"
#include "../player_graphics_item.h"
MoveMenu::MoveMenu(PlayerGraphicsItem *player) : QMenu(tr("Move to"))
MoveMenu::MoveMenu(PlayerGraphicsItem *player, QWidget *parent) : QMenu(tr("Move to"), parent)
{
aMoveToTopLibrary = new QAction(this);
aMoveToTopLibrary->setData(cmMoveToTopLibrary);