diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index 0261ae1d..71ac9be7 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