1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(addfriend): do not load own Tox ID from clipboard

fix #4024
This commit is contained in:
sudden6 2016-12-29 13:45:38 +01:00
parent d196611ffe
commit efcff57601
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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);
}