mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-03-21 17:55:21 -05:00
Fix segfault when selecting card in replay (#6077)
This commit is contained in:
parent
09381575a7
commit
322fdb14de
|
|
@ -1267,6 +1267,10 @@ void TabGame::setActiveCard(CardItem *card)
|
|||
*/
|
||||
void TabGame::setCardMenu(QMenu *menu)
|
||||
{
|
||||
if (!aCardMenu) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (menu) {
|
||||
aCardMenu->setMenu(menu);
|
||||
} else {
|
||||
|
|
@ -1355,6 +1359,9 @@ void TabGame::createReplayMenuItems()
|
|||
phasesMenu = nullptr;
|
||||
gameMenu = new QMenu(this);
|
||||
gameMenu->addAction(aCloseReplay);
|
||||
|
||||
aCardMenu = nullptr;
|
||||
|
||||
addTabMenu(gameMenu);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user