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

Show Tox ID instead of blank names

This commit is contained in:
tux3 2015-04-24 21:34:24 +02:00
parent 42d7a7bcef
commit 5662120c51
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -1035,7 +1035,7 @@ void Core::loadFriends()
emit friendAdded(ids[i], CUserId::toString(clientId));
const size_t nameSize = tox_friend_get_name_size(tox, ids[i], nullptr);
if (nameSize != SIZE_MAX)
if (nameSize && nameSize != SIZE_MAX)
{
uint8_t *name = new uint8_t[nameSize];
if (tox_friend_get_name(tox, ids[i], name, nullptr))