From a277bf78a3bada21e1c2b50b37169e584159884c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Fri, 25 Feb 2022 14:20:18 +0100 Subject: [PATCH] forgot to check OS --- src/board/UBBoardController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 25b7ab8c..f6d01637 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -2171,8 +2171,12 @@ void UBBoardController::stylusToolChanged(int tool) { if(mPaletteManager->mKeyboardPalette->m_isVisible) { +#ifdef Q_OS_OSX if (!UBPlatformUtils::errorOpeningVirtualKeyboard) UBApplication::mainWindow->actionVirtualKeyboard->activate(QAction::Trigger); +#else + UBApplication::mainWindow->actionVirtualKeyboard->activate(QAction::Trigger); +#endif } } }