ensure the icon has an action before using it
BUG:224944 svn path=/branches/KDE/4.4/kdelibs/; revision=1088114
This commit is contained in:
parent
a4f2a6eb7f
commit
4670d21feb
@ -566,7 +566,9 @@ void DesktopToolBox::adjustToolBackerGeometry()
|
||||
(viewTransform().m11() == Plasma::scalingFactor(Plasma::DesktopZoom) ||
|
||||
icon->action() == d->containment->action("add sibling containment") ||
|
||||
icon->action() == d->containment->action("add widgets"))) {
|
||||
icon->setText(icon->action()->text());
|
||||
if (icon->action()) {
|
||||
icon->setText(icon->action()->text());
|
||||
}
|
||||
} else {
|
||||
icon->setText(QString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user