From 9169146e272023cad7e5accdd555de7d243d1d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Fri, 4 Mar 2022 11:30:46 +0100 Subject: [PATCH] don't call showKeyboard if opening is in error (osx only) --- src/board/UBBoardController.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index b3b26c8e..ae0d80fe 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1934,7 +1934,12 @@ void UBBoardController::closing() mIsClosing = true; lastWindowClosed(); ClearUndoStack(); - showKeyboard(false); +#ifdef Q_OS_OSX + if (!UBPlatformUtils::errorOpeningVirtualKeyboard) + showKeyboard(false); +#else + showKeyboard(false); +#endif } void UBBoardController::lastWindowClosed()