From f9d0dd487910e6868656081a88e4c647ef2a2e85 Mon Sep 17 00:00:00 2001 From: Andrey Batyiev Date: Mon, 16 Aug 2021 11:21:14 +0300 Subject: [PATCH] SYNERGY-1036-Radio-button-style-issue (#7070) * SYNERGY-1036-Radio-button-style-issue * SYNERGY-1036 Radio button style issue *Update ChangeLog * SYNERGY-1036 Update ChangeLog Co-authored-by: Andrii Batyiev Co-authored-by: Serhii Hadzhilov Co-authored-by: SerhiiGadzhilov <71632867+SerhiiGadzhilov@users.noreply.github.com> --- ChangeLog | 3 +++ src/gui/src/MainWindow.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index f8c359a93..260b45a73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ v1.14.2-snapshot =========== +Bug fixes: +- #7070 Fix radio button shifted focus on macOS + Enhancements: - #7068 Add Synergy restart when settings changed =========== diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index f329aae15..4c3458093 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -121,6 +121,12 @@ MainWindow::MainWindow (AppConfig& appConfig, #endif setupUi(this); + +#if defined(Q_OS_MAC) + m_pRadioGroupServer->setAttribute(Qt::WA_MacShowFocusRect,0); + m_pRadioGroupClient->setAttribute(Qt::WA_MacShowFocusRect,0); +#endif + updateAutoConfigWidgets(); createMenuBar();