From 0ee639ebd71134c52665e297293ec04266e42b5b Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 30 May 2022 16:57:12 +0300 Subject: [PATCH] Log desktop actions --- src/SHAPERGUI/SHAPERGUI.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index 9232099ac..5717b08f3 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -787,6 +787,8 @@ QAction* SHAPERGUI::addFeatureOfNested(const QString& theWBName, createTool(separator(), aWBTool); /// nested action is always separated of others registerCommandToolbar(theWBName, -1); + connect(anAction, SIGNAL(triggered(bool)), this, SLOT(logShaperGUIEvent())); + return anAction; } @@ -815,6 +817,9 @@ QAction* SHAPERGUI::addDesktopCommand(const QString& theId, const QString& theTi aAction->setStatusTip(theTip); aAction->setData(theId); createMenu(aId, aMenu, theMenuPosition); + + connect(aAction, SIGNAL(triggered(bool)), this, SLOT(logShaperGUIEvent())); + return aAction; } -- 2.39.2