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:
parent
7b70fd0008
commit
09b94b24b8
|
@ -239,7 +239,7 @@ void Core::start()
|
||||||
{
|
{
|
||||||
setStatusMessage(tr("Toxing on qTox")); // this also solves the not updating issue
|
setStatusMessage(tr("Toxing on qTox")); // this also solves the not updating issue
|
||||||
setUsername(tr("qTox User"));
|
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);
|
tox_callback_friend_request(tox, onFriendRequest, this);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user