diff options
author | Alexander Golubev <[email protected]> | 2024-03-06 12:37:16 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-03-08 10:37:28 +0900 |
commit | b24092d4d2cdfef0145f580a6d66be9b0e06db4c (patch) | |
tree | 26f73ce86868bcbaf10f80cfc1637dc6179706b8 | |
parent | f9cd02afd1dd2fda167df0dbb3a7347b999e4517 (diff) | |
download | gwenview-b24092d4d2cdfef0145f580a6d66be9b0e06db4c.tar.gz gwenview-b24092d4d2cdfef0145f580a6d66be9b0e06db4c.zip |
fix an incorrect condition in ImageViewController::eventFilter()
Signed-off-by: Alexander Golubev <[email protected]>
(cherry picked from commit a8bf4dbf8aa3c20f60454a296278f8d00c83617a)
-rw-r--r-- | src/gvcore/imageviewcontroller.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
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; } |