summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2022-06-02 23:32:21 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2022-06-02 23:32:21 -0700
commit27dd2c4aa4dcb63c6fa91e384e1bc82787497234 (patch)
tree37b5d2905cbf627cab4892b7df2f930f1cd8fec4 /Source/Core/DolphinQt/MainWindow.cpp
parentf7f47d3cd08991915a9fe14070653697d715929d (diff)
qt: unregister Settings' DevicesChanged callback during shutdown
fixes a crash on close
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 361a182819..d2dea76787 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -360,6 +360,8 @@ void MainWindow::ShutdownControllers()
{
m_hotkey_scheduler->Stop();
+ Settings::Instance().UnregisterDevicesChangedCallback();
+
Pad::Shutdown();
Pad::ShutdownGBA();
Keyboard::Shutdown();