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:
parent
3f9109a265
commit
64fdce2086
@ -568,7 +568,7 @@ QList<QAction *> Applet::contextualActions()
|
||||
|
||||
KActionCollection *Applet::actions() const
|
||||
{
|
||||
return d->actions ? d->actions : new KActionCollection((QObject *)this);
|
||||
return d->actions;
|
||||
}
|
||||
|
||||
Types::FormFactor Applet::formFactor() const
|
||||
|
Loading…
Reference in New Issue
Block a user