plasma: Fix applet actions might be nullptr

BUG:351777
This commit is contained in:
Leslie Zhai 2015-08-26 17:24:29 +08:00
parent 25748ca575
commit 4e9b32d80d

View File

@ -568,7 +568,7 @@ QList<QAction *> Applet::contextualActions()
KActionCollection *Applet::actions() const
{
return d->actions;
return d->actions ? d->actions : new KActionCollection((QObject *)this);
}
Types::FormFactor Applet::formFactor() const