From 00bb7672918d28a660acfd7e7e16274930dbb8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 1 May 2014 16:22:04 +0200 Subject: [PATCH] fix dangeling allActivitiesGroup pointer crash CCBUG: 334152 Forward port of d3fe2391f6b36398ac671fe3cadef667919cc0e5 from kde-workspace --- useractions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/useractions.cpp b/useractions.cpp index f79fe15700..305930bd26 100755 --- a/useractions.cpp +++ b/useractions.cpp @@ -57,6 +57,7 @@ along with this program. If not, see . #include #include #include +#include #include #include @@ -677,7 +678,7 @@ void UserActionsMenu::activityPopupAboutToShow() QAction *action = m_activityMenu->addAction(i18n("&All Activities")); action->setData(QString()); action->setCheckable(true); - static QActionGroup *allActivitiesGroup = NULL; + static QPointer allActivitiesGroup; if (!allActivitiesGroup) { allActivitiesGroup = new QActionGroup(m_activityMenu); }