trim invite input text

This commit is contained in:
Jedi18 2021-02-16 01:00:32 +05:30
parent f35e826485
commit 96028f00a5

View file

@ -65,7 +65,7 @@ InviteUsers::InviteUsers(QWidget *parent)
connect(inviteeInput_, &TextField::returnPressed, this, &InviteUsers::addUser); connect(inviteeInput_, &TextField::returnPressed, this, &InviteUsers::addUser);
connect(confirmBtn_, &QPushButton::clicked, [this]() { connect(confirmBtn_, &QPushButton::clicked, [this]() {
if (!inviteeInput_->text().isEmpty()) { if (!inviteeInput_->text().trimmed().isEmpty()) {
addUser(); addUser();
} }