Don't crash if d->toolBox is NULL.
"plasmoidviewer desktop" works now too :) svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836717
This commit is contained in:
parent
5e5622ddf2
commit
19e5356bf5
@ -191,7 +191,7 @@ void Containment::init()
|
||||
activityAction->setShortcut(QKeySequence("ctrl+shift+a"));
|
||||
d->actions().addAction("add sibling containment", activityAction);
|
||||
|
||||
if (d->type == DesktopContainment) {
|
||||
if (d->type == DesktopContainment && d->toolBox) {
|
||||
d->toolBox->addTool(this->action("add widgets"));
|
||||
d->toolBox->addTool(this->action("zoom in"));
|
||||
d->toolBox->addTool(this->action("zoom out"));
|
||||
|
Loading…
Reference in New Issue
Block a user