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

Don't override tox_save's name/status

Fixes #32
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-30 20:53:29 +02:00
parent e96e512a17
commit b547cdbaea

View File

@ -113,12 +113,6 @@ void Core::start()
emit friendAddressGenerated(CFriendAddress::toString(friendAddress));
CString cUsername(Settings::getInstance().getUsername());
tox_set_name(tox, cUsername.data(), cUsername.size());
CString cStatusMessage(Settings::getInstance().getStatusMessage());
tox_set_status_message(tox, cStatusMessage.data(), cStatusMessage.size());
bootstrapDht();
toxTimer->start(tox_do_interval(tox));
@ -126,6 +120,8 @@ void Core::start()
void Core::onBootstrapTimer()
{
if (!tox)
return;
if(!tox_isconnected(tox))
bootstrapDht();
}