Commit ecaa575f authored by Emmanuel Pescosta's avatar Emmanuel Pescosta

Fix Bug 297355 - Dolphin leaves file preview tooltips open even when is not visible

BUG: 297355
FIXED-IN: 4.9.2
REVIEW: 106499
parent 3cb15ca7
......@@ -753,6 +753,20 @@ void DolphinView::hideEvent(QHideEvent* event)
QWidget::hideEvent(event);
}
bool DolphinView::event(QEvent* event)
{
/* See Bug 297355
* Dolphin leaves file preview tooltips open even when is not visible.
*
* Hide tool-tip when Dolphin loses focus.
*/
if (event->type() == QEvent::WindowDeactivate) {
hideToolTip();
}
return QWidget::event(event);
}
void DolphinView::activate()
{
setActive(true);
......
......@@ -532,6 +532,7 @@ protected:
/** @reimp */
virtual void hideEvent(QHideEvent* event);
virtual bool event(QEvent* event);
private slots:
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment