Skip to content
Permalink
Browse files
Merge pull request #6684 from spycrab/qt_wrong_thread
Qt/Settings: Emit EmulationStateChanged from the UI thread
  • Loading branch information
delroth committed Apr 22, 2018
2 parents b188688 + 854fa0f commit 1b63810
Showing 1 changed file with 3 additions and 2 deletions.
@@ -20,8 +20,9 @@
Settings::Settings()
{
qRegisterMetaType<Core::State>();
Core::SetOnStateChangedCallback(
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
Core::SetOnStateChangedCallback([this](Core::State new_state) {
QueueOnObject(this, [this, new_state] { emit EmulationStateChanged(new_state); });
});

Config::AddConfigChangedCallback(
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });

0 comments on commit 1b63810

Please sign in to comment.