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

Never call GUI methods from core directly, fix #436

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-25 13:01:23 +02:00
parent 7b70fd0008
commit 09b94b24b8
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -239,7 +239,7 @@ void Core::start()
{
setStatusMessage(tr("Toxing on qTox")); // this also solves the not updating issue
setUsername(tr("qTox User"));
Widget::getInstance()->onSettingsClicked(); // update ui with new profile (im worried about threading, but it seems to work)
QMetaObject::invokeMethod(Widget::getInstance(), "onSettingsClicked"); // update ui with new profile
}
tox_callback_friend_request(tox, onFriendRequest, this);