plasma: Fix applet actions might be nullptr
BUG:351777
This commit is contained in:
parent
25748ca575
commit
4e9b32d80d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user