check for toolbox existence, fixes a crash in plasmoidviewer
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=798068
This commit is contained in:
parent
419277a044
commit
ea9347e48f
@ -263,7 +263,7 @@ void Containment::containmentConstraintsUpdated(Plasma::Constraints constraints)
|
||||
d->toolbox->enableTool("addwidgets", !isImmutable());
|
||||
}
|
||||
|
||||
if (constraints & Plasma::FormFactorConstraint) {
|
||||
if (constraints & Plasma::FormFactorConstraint && d->toolbox) {
|
||||
if (formFactor() == Vertical) {
|
||||
d->toolbox->setOrientation(Qt::Vertical);
|
||||
//defaults to horizontal
|
||||
|
Loading…
Reference in New Issue
Block a user