From 4e9b32d80d6b43ad3d1ddd47c948ad066608b052 Mon Sep 17 00:00:00 2001 From: Leslie Zhai Date: Wed, 26 Aug 2015 17:24:29 +0800 Subject: [PATCH] plasma: Fix applet actions might be nullptr BUG:351777 --- src/plasma/applet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasma/applet.cpp b/src/plasma/applet.cpp index 895555c52..3716a8328 100644 --- a/src/plasma/applet.cpp +++ b/src/plasma/applet.cpp @@ -568,7 +568,7 @@ QList Applet::contextualActions() KActionCollection *Applet::actions() const { - return d->actions; + return d->actions ? d->actions : new KActionCollection((QObject *)this); } Types::FormFactor Applet::formFactor() const