From efcff57601a3dc04fc7376b6edbeff81487dc5b8 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Thu, 29 Dec 2016 13:45:38 +0100 Subject: [PATCH] fix(addfriend): do not load own Tox ID from clipboard fix #4024 --- src/widget/form/addfriendform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }