History

Merge branch 'bart' into marge

Bradley Austin Davis committed 11 years ago

Commit c0048af2 parents 1909846 ae539af2 files · +9 −8Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+5−1
@@ -4472,7 +4472,11 @@ void Application::friendsWindowClosed() { · 4471 unmodified lines
44724472 }
44734473
44744474 void Application::postLambdaEvent(std::function<void()> f) {
4475− QCoreApplication::postEvent(this, new LambdaEvent(f));
4475+ if (this->thread() == QThread::currentThread()) {
4476+ f();
4477+ } else {
4478+ QCoreApplication::postEvent(this, new LambdaEvent(f));
4479+ }
44764480 }
44774481
44784482 void Application::initPlugins() {