From kde-commits Mon Jan 31 23:17:41 2005 From: Andras Mantia Date: Mon, 31 Jan 2005 23:17:41 +0000 To: kde-commits Subject: kdewebdev/quanta/parts/preview Message-Id: <20050131231741.B07221D1DF () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110721347205418 CVS commit by amantia: Make the view source context menu usable with mouse even if the preview is in a toolview area. M +1 -1 whtmlpart.cpp 1.31 --- kdewebdev/quanta/parts/preview/whtmlpart.cpp #1.30:1.31 @@ -160,5 +160,5 @@ KParts::ReadOnlyPart *WHTMLPart::createP bool WHTMLPart::eventFilter(QObject *watched, QEvent *e) { - if (watched == view() && e->type() == QEvent::FocusOut) + if (watched == view() && e->type() == QEvent::FocusOut && !m_contextMenu->hasFocus()) emit previewHasFocus(false); else