From 7e49eabab40bc2540e6ed44e8be3a4d40a4c3f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Mon, 18 May 2020 15:58:54 +0200 Subject: [PATCH] toggleFinder logic only on osx --- src/desktop/UBDesktopAnnotationController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/desktop/UBDesktopAnnotationController.cpp b/src/desktop/UBDesktopAnnotationController.cpp index 741fafe6..41459c22 100644 --- a/src/desktop/UBDesktopAnnotationController.cpp +++ b/src/desktop/UBDesktopAnnotationController.cpp @@ -374,7 +374,7 @@ void UBDesktopAnnotationController::close() void UBDesktopAnnotationController::stylusToolChanged(int tool) { Q_UNUSED(tool); - +#ifdef Q_OS_OSX if (UBDrawingController::drawingController()->isInDesktopMode()) { UBStylusTool::Enum eTool = (UBStylusTool::Enum)tool; @@ -389,6 +389,7 @@ void UBDesktopAnnotationController::stylusToolChanged(int tool) updateBackground(); } +#endif }