diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-02-16 01:00:32 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-02-16 01:00:32 +0530 |
commit | 96028f00a5d1510c2db6b81d536fb8e8249a3272 (patch) | |
tree | 880548b2a4afcbe5f8f028a0436a09c367464a0a | |
parent | Fix room list updating on adding to hidden tag or removing tag (diff) | |
download | nheko-96028f00a5d1510c2db6b81d536fb8e8249a3272.tar.xz |
trim invite input text
-rw-r--r-- | src/dialogs/InviteUsers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/InviteUsers.cpp b/src/dialogs/InviteUsers.cpp index 2de1d20f..8f1097fa 100644 --- a/src/dialogs/InviteUsers.cpp +++ b/src/dialogs/InviteUsers.cpp @@ -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(); } |