From e85b4167bda6e6265a183998d7aadaec06ba88c7 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Tue, 10 Mar 2020 09:11:36 +0100 Subject: [PATCH] Changed CDockManager::addToggleViewActionToMenu to support later setting of group icon --- src/DockManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DockManager.cpp b/src/DockManager.cpp index bb72777..1618cd9 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -778,6 +778,10 @@ QAction* CDockManager::addToggleViewActionToMenu(QAction* ToggleViewAction, d->addActionToMenu(GroupMenu->menuAction(), d->ViewMenu, AlphabeticallySorted); d->ViewMenuGroups.insert(Group, GroupMenu); } + else if (GroupMenu->icon().isNull() && !GroupIcon.isNull()) + { + GroupMenu->setIcon(GroupIcon); + } d->addActionToMenu(ToggleViewAction, GroupMenu, AlphabeticallySorted); return GroupMenu->menuAction();