From a0dce8e1403b6363ce4390d216a4620df0f7ad75 Mon Sep 17 00:00:00 2001 From: dingodoppelt Date: Sun, 19 Jul 2020 18:36:44 +0200 Subject: [PATCH] connect dialog: remove spaces from the parsed string in the the "Servername/Address" combo box --- src/connectdlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index 2ce4471b..657fc0a1 100755 --- a/src/connectdlg.cpp +++ b/src/connectdlg.cpp @@ -658,7 +658,8 @@ void CConnectDlg::OnConnectClicked() } else { - strSelectedAddress = cbxServerAddr->currentText(); + // remove all spaces from the parsed string in the the combo box + strSelectedAddress = cbxServerAddr->currentText().simplified().replace ( " ", "" ); } // tell the parent window that the connection shall be initiated