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

refactor: Use ToxPk instead of ToxId

This commit is contained in:
Diadlo 2017-06-27 12:12:18 +03:00
parent 6b93a41a40
commit c6d76da0dd
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -552,9 +552,10 @@ void FriendListWidget::dropEvent(QDropEvent* event)
if (!widget) if (!widget)
return; return;
// Check, that the user has a friend with the same ToxId // Check, that the user has a friend with the same ToxPk
ToxId toxId(event->mimeData()->text()); const QByteArray data = QByteArray::fromHex(event->mimeData()->text().toLatin1());
Friend* f = FriendList::findFriend(toxId.getPublicKey()); const ToxPk toxPk{data};
Friend* f = FriendList::findFriend(toxPk);
if (!f) if (!f)
return; return;