diff options
author | Alexander Golubev <[email protected]> | 2024-03-06 12:37:16 +0300 |
---|---|---|
committer | Alexander Golubev <[email protected]> | 2024-03-07 22:23:10 +0300 |
commit | a8bf4dbf8aa3c20f60454a296278f8d00c83617a (patch) | |
tree | d6342c72550418d0536fe560f16f009ebcdc03e0 /src | |
parent | 430301a436a5526961c95810cd1d9057956a6d08 (diff) | |
download | gwenview-a8bf4dbf8aa3c20f60454a296278f8d00c83617a.tar.gz gwenview-a8bf4dbf8aa3c20f60454a296278f8d00c83617a.zip |
fix an incorrect condition in ImageViewController::eventFilter()
Signed-off-by: Alexander Golubev <[email protected]>
Diffstat (limited to 'src')
-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; } |