just check for icon existence, no matter if it has a qicon or a svg set
fixes popup/complete switch when the panel gets resized svn path=/trunk/KDE/kdelibs/; revision=1212674
This commit is contained in:
parent
a757529178
commit
faa7b0abd1
@ -237,7 +237,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
|||||||
(f == Plasma::Vertical || f == Plasma::Horizontal))) {
|
(f == Plasma::Vertical || f == Plasma::Horizontal))) {
|
||||||
QGraphicsLinearLayout *lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout());
|
QGraphicsLinearLayout *lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout());
|
||||||
|
|
||||||
if (icon && !icon->icon().isNull() && lay && lay->count() > 0) {
|
if (icon && lay && lay->count() > 0) {
|
||||||
lay->removeAt(0);
|
lay->removeAt(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user