mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
set DeleteOnClose attribute on menu
This commit is contained in:
parent
9ed635a933
commit
99aeeacab6
1 changed files with 1 additions and 0 deletions
|
|
@ -286,6 +286,7 @@ static void saveDeckToClipboard(DeckLoader *deckLoader, bool addComments, bool a
|
|||
QMenu *DeckPreviewWidget::createRightClickMenu()
|
||||
{
|
||||
auto *menu = new QMenu(this);
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
auto loadDeckAction = menu->addAction(tr("Load Deck"));
|
||||
connect(loadDeckAction, &QAction::triggered, this, [this] { emit deckLoadRequested(filePath); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue