diff --git a/Source/Core/DolphinQt2/Settings.cpp b/Source/Core/DolphinQt2/Settings.cpp index fbc283c267..aa06f0a020 100644 --- a/Source/Core/DolphinQt2/Settings.cpp +++ b/Source/Core/DolphinQt2/Settings.cpp @@ -18,6 +18,7 @@ Settings::Settings() { + qRegisterMetaType(); Core::SetOnStateChangedCallback( [this](Core::State new_state) { emit EmulationStateChanged(new_state); }); } diff --git a/Source/Core/DolphinQt2/Settings.h b/Source/Core/DolphinQt2/Settings.h index 4de0b88be6..4ed5f4021b 100644 --- a/Source/Core/DolphinQt2/Settings.h +++ b/Source/Core/DolphinQt2/Settings.h @@ -96,3 +96,5 @@ private: std::unique_ptr m_server; Settings(); }; + +Q_DECLARE_METATYPE(Core::State);