diff --git a/widget/form/addfriendform.cpp b/widget/form/addfriendform.cpp index ae38d2f92..3dd8b9b49 100644 --- a/widget/form/addfriendform.cpp +++ b/widget/form/addfriendform.cpp @@ -75,6 +75,8 @@ void AddFriendForm::onSendTriggered() showWarning("Please fill in a valid Tox ID"); } else if (isToxId(id)) { emit friendRequested(id, getMessage()); + this->toxId.setText(""); + this->message.setText(""); } else { id = id.replace("@", "._tox."); dns.setName(id);