mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
qt: unregister Settings' DevicesChanged callback during shutdown
fixes a crash on close
This commit is contained in:
parent
f7f47d3cd0
commit
27dd2c4aa4
3 changed files with 14 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "DiscIO/Enums.h"
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
|
||||
namespace Core
|
||||
{
|
||||
|
@ -44,6 +45,8 @@ public:
|
|||
|
||||
~Settings();
|
||||
|
||||
void UnregisterDevicesChangedCallback();
|
||||
|
||||
static Settings& Instance();
|
||||
static QSettings& GetQSettings();
|
||||
|
||||
|
@ -199,10 +202,12 @@ signals:
|
|||
void USBKeyboardConnectionChanged(bool connected);
|
||||
|
||||
private:
|
||||
Settings();
|
||||
|
||||
bool m_batch = false;
|
||||
std::shared_ptr<NetPlay::NetPlayClient> m_client;
|
||||
std::shared_ptr<NetPlay::NetPlayServer> m_server;
|
||||
Settings();
|
||||
ControllerInterface::HotplugCallbackHandle m_hotplug_callback_handle;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(Core::State);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue