use the popup only when the applet isn't our parent

svn path=/trunk/KDE/kdelibs/; revision=1026224
This commit is contained in:
Aaron J. Seigo 2009-09-21 06:58:24 +00:00
parent 7ad7bfd634
commit bd7cbf7773

View File

@ -554,7 +554,7 @@ void AppletPrivate::positionMessageOverlay()
}
PopupApplet *popup = qobject_cast<Plasma::PopupApplet*>(q);
const bool usePopup = popup && messageOverlay->parentItem() == q;
const bool usePopup = popup && (messageOverlay->parentItem() != q);
QGraphicsItem *topItem = q;
if (usePopup && popup->widget()) {