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:
parent
b5bcef2c42
commit
dfd6420ddc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user