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

fix ToxID from QString convertation

This commit is contained in:
apprb 2014-11-12 01:35:45 +09:00
parent b5bcef2c42
commit dfd6420ddc
No known key found for this signature in database
GPG Key ID: B001911B5B22FB9B

View File

@ -33,7 +33,7 @@ ToxID ToxID::fromString(QString id)
ToxID toxID;
toxID.publicKey = id.left(TOX_ID_PUBLIC_KEY_LENGTH);
toxID.noSpam = id.mid(TOX_ID_PUBLIC_KEY_LENGTH, TOX_ID_NO_SPAM_LENGTH);
toxID.checkSum = id.right(TOX_ID_CHECKSUM_LENGTH);
toxID.checkSum = id.mid(TOX_ID_PUBLIC_KEY_LENGTH + TOX_ID_NO_SPAM_LENGTH, TOX_ID_CHECKSUM_LENGTH);
return toxID;
}