Browse Source

Never call GUI methods from core directly, fix #436

pull/538/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
09b94b24b8
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 2
      src/core.cpp

2
src/core.cpp

@ -239,7 +239,7 @@ void Core::start() @@ -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);

Loading…
Cancel
Save