From a8bf4dbf8aa3c20f60454a296278f8d00c83617a Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Wed, 6 Mar 2024 12:37:16 +0300 Subject: fix an incorrect condition in ImageViewController::eventFilter() Signed-off-by: Alexander Golubev --- src/gvcore/imageviewcontroller.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/gvcore/imageviewcontroller.cpp') diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp index b2e9c31..4a00ccb 100644 --- a/src/gvcore/imageviewcontroller.cpp +++ b/src/gvcore/imageviewcontroller.cpp @@ -418,7 +418,7 @@ void ImageViewController::updateFromSettings() { */ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) { if (!d->mFullScreen) return false; - if (!event->type()==TQEvent::MouseMove) return false; + if (event->type()!=TQEvent::MouseMove) return false; // Check we must filter this object. This is an application filter, so we // have to check we are not dealing with another object. @@ -434,16 +434,10 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) { d->updateFullScreenBarPosition(); - if (event->type()==TQEvent::MouseMove) { - d->mCursorHidden=false; - d->restartAutoHideTimer(); - } + d->mCursorHidden=false; + d->restartAutoHideTimer(); - if (d->mCursorHidden) { - TQApplication::setOverrideCursor(blankCursor,true); - } else { - TQApplication::restoreOverrideCursor(); - } + TQApplication::restoreOverrideCursor(); return false; } -- cgit v1.2.1