From 96028f00a5d1510c2db6b81d536fb8e8249a3272 Mon Sep 17 00:00:00 2001 From: Jedi18 Date: Tue, 16 Feb 2021 01:00:32 +0530 Subject: [PATCH] trim invite input text --- src/dialogs/InviteUsers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }