diff --git a/ui/edit/dialog_edit_profile.cpp b/ui/edit/dialog_edit_profile.cpp index 2cdceb6cb..4f43a28c5 100644 --- a/ui/edit/dialog_edit_profile.cpp +++ b/ui/edit/dialog_edit_profile.cpp @@ -342,7 +342,7 @@ bool DialogEditProfile::onEnd() { // 左边 ent->bean->name = ui->name->text(); - ent->bean->serverAddress = ui->address->text(); + ent->bean->serverAddress = ui->address->text().remove(' '); ent->bean->serverPort = ui->port->text().toInt(); // 右边 stream