Revert "plasma: Fix applet actions might be nullptr"

This reverts commit 4e9b32d80d.

doesn't fix the problem and just introduces a memleak
(the crash is actually about a deleted containment,
so the problem is somewhere else)
CCMAIL:xiangzhai83@gmail.com
This commit is contained in:
Marco Martin 2015-10-07 17:19:13 +02:00
parent 3f9109a265
commit 64fdce2086

View File

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