From 7038d87aa76df07a5652c128c1b15d7b7fd95208 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 12 Aug 2020 17:13:18 +0200 Subject: [PATCH] prevent [enter] from disconnecting you from a server (#515) --- src/clientdlg.cpp | 11 ----------- src/clientdlgbase.ui | 5 ++++- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index 5142d519..f6db5002 100755 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -235,17 +235,6 @@ CClientDlg::CClientDlg ( CClient* pNCliP, } - // Mac Workaround: - // If the connect button is the default button, on Mac it is highlighted - // by fading in and out a blue background color. This operation consumes so - // much CPU that we get audio interruptions. - // Better solution: increase thread priority of worker thread (since the - // user can always highlight the button manually, too) -> TODO -#if defined ( __APPLE__ ) || defined ( __MACOSX ) - butConnect->setDefault ( false ); -#endif - - // File menu -------------------------------------------------------------- QMenu* pFileMenu = new QMenu ( tr ( "&File" ), this ); diff --git a/src/clientdlgbase.ui b/src/clientdlgbase.ui index 48b7fdb0..a5da1226 100755 --- a/src/clientdlgbase.ui +++ b/src/clientdlgbase.ui @@ -343,8 +343,11 @@ C&onnect + + false + - true + false