don't hide the popup if it lost focus but ithe icon is pressed.
not too pretty solution to BUG:230157 svn path=/trunk/KDE/kdelibs/; revision=1101663
This commit is contained in:
parent
041e15f953
commit
60d5462c3f
@ -435,7 +435,6 @@ bool PopupApplet::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
if (!d->passive && watched == d->dialogPtr.data() && (event->type() == QEvent::WindowDeactivate)) {
|
||||
d->popupLostFocus = true;
|
||||
hidePopup();
|
||||
QTimer::singleShot(100, this, SLOT(clearPopupLostFocus()));
|
||||
}
|
||||
|
||||
@ -660,6 +659,9 @@ void PopupAppletPrivate::hideTimedPopup()
|
||||
|
||||
void PopupAppletPrivate::clearPopupLostFocus()
|
||||
{
|
||||
if (!icon || !icon->isDown()) {
|
||||
q->hidePopup();
|
||||
}
|
||||
popupLostFocus = false;
|
||||
}
|
||||
|
||||
|
@ -353,6 +353,7 @@ private:
|
||||
|
||||
IconWidgetPrivate * const d;
|
||||
friend class IconWidgetPrivate;
|
||||
friend class PopupAppletPrivate;
|
||||
};
|
||||
|
||||
} // namespace Plasma
|
||||
|
Loading…
Reference in New Issue
Block a user