trim invite input text
This commit is contained in:
parent
f35e826485
commit
96028f00a5
@ -65,7 +65,7 @@ InviteUsers::InviteUsers(QWidget *parent)
|
||||
|
||||
connect(inviteeInput_, &TextField::returnPressed, this, &InviteUsers::addUser);
|
||||
connect(confirmBtn_, &QPushButton::clicked, [this]() {
|
||||
if (!inviteeInput_->text().isEmpty()) {
|
||||
if (!inviteeInput_->text().trimmed().isEmpty()) {
|
||||
addUser();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user