1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Fixed broken QObject parenting

This commit is contained in:
Martin Tůma 2020-11-11 18:46:26 +01:00
parent f55d6d8501
commit 609202fe57

View File

@ -140,10 +140,9 @@ void GUI::createMapActions()
MapAction *GUI::createMapAction(Map *map) MapAction *GUI::createMapAction(Map *map)
{ {
MapAction *a = new MapAction(map); MapAction *a = new MapAction(map, _mapsActionGroup);
a->setMenuRole(QAction::NoRole); a->setMenuRole(QAction::NoRole);
a->setCheckable(true); a->setCheckable(true);
a->setActionGroup(_mapsActionGroup);
connect(a, SIGNAL(triggered()), this, SLOT(mapChanged())); connect(a, SIGNAL(triggered()), this, SLOT(mapChanged()));
return a; return a;