diff --git a/src/widget/form/addfriendform.cpp b/src/widget/form/addfriendform.cpp index d910c450a..79548bab6 100644 --- a/src/widget/form/addfriendform.cpp +++ b/src/widget/form/addfriendform.cpp @@ -225,7 +225,7 @@ void AddFriendForm::setIdFromClipboard() const Core* core = Core::getInstance(); if (core->isReady() && !id.isEmpty() && ToxId::isToxId(id) - && ToxId(id) == core->getSelfId()) + && ToxId(id) != core->getSelfId()) { toxId.setText(id); }