leave geom updates to applets w/out icons

when an applet sets an empty icon, it's handling the main interface.
PopupApplet emiting geom signals just runs the risk of poorly timed
updates. this causes panel jitter with the system tray when it resizes
This commit is contained in:
Aaron Seigo 2011-02-03 20:36:17 -08:00
parent 94792358f9
commit 1d473439a5

View File

@ -431,7 +431,11 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
updateDialogPosition();
}
emit q->sizeHintChanged(Qt::PreferredSize);
if (icon) {
// emit the size hint changing stuff for our applet as we are handling
// the size changings
emit q->sizeHintChanged(Qt::PreferredSize);
}
}
void PopupAppletPrivate::appletActivated()