Changed CDockManager::addToggleViewActionToMenu to support later setting of group icon

This commit is contained in:
Uwe Kindler 2020-03-10 09:11:36 +01:00
parent 59c783831a
commit e85b4167bd

View File

@ -778,6 +778,10 @@ QAction* CDockManager::addToggleViewActionToMenu(QAction* ToggleViewAction,
d->addActionToMenu(GroupMenu->menuAction(), d->ViewMenu, AlphabeticallySorted); d->addActionToMenu(GroupMenu->menuAction(), d->ViewMenu, AlphabeticallySorted);
d->ViewMenuGroups.insert(Group, GroupMenu); d->ViewMenuGroups.insert(Group, GroupMenu);
} }
else if (GroupMenu->icon().isNull() && !GroupIcon.isNull())
{
GroupMenu->setIcon(GroupIcon);
}
d->addActionToMenu(ToggleViewAction, GroupMenu, AlphabeticallySorted); d->addActionToMenu(ToggleViewAction, GroupMenu, AlphabeticallySorted);
return GroupMenu->menuAction(); return GroupMenu->menuAction();