From 609202fe57b7263804f336f75552fb539086159d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 11 Nov 2020 18:46:26 +0100 Subject: [PATCH] Fixed broken QObject parenting --- src/GUI/gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index b74c8da3..98f51015 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -140,10 +140,9 @@ void GUI::createMapActions() MapAction *GUI::createMapAction(Map *map) { - MapAction *a = new MapAction(map); + MapAction *a = new MapAction(map, _mapsActionGroup); a->setMenuRole(QAction::NoRole); a->setCheckable(true); - a->setActionGroup(_mapsActionGroup); connect(a, SIGNAL(triggered()), this, SLOT(mapChanged())); return a;