mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed broken QObject parenting
This commit is contained in:
parent
f55d6d8501
commit
609202fe57
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user