mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Parent MoveMenu to CardMenu to fix memory leak on menu rebuild
This commit is contained in:
parent
e881c3f437
commit
36c4c5aa51
3 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue