Qt: Fix even more potential cases of the GBAKeyEditor dangling
Jeffrey Pfau jeffrey@endrift.com
Sun, 17 Jan 2016 22:38:39 -0800
2 files changed,
5 insertions(+),
0 deletions(-)
M
src/platform/qt/GBAKeyEditor.cpp
→
src/platform/qt/GBAKeyEditor.cpp
@@ -133,6 +133,10 @@
setAll->setFocus(); } +GBAKeyEditor::~GBAKeyEditor() { + m_controller->releaseFocus(this); +} + void GBAKeyEditor::setAll() { m_currentKey = m_keyOrder.begin(); (*m_currentKey)->setFocus();
M
src/platform/qt/GBAKeyEditor.h
→
src/platform/qt/GBAKeyEditor.h
@@ -28,6 +28,7 @@ Q_OBJECT
public: GBAKeyEditor(InputController* controller, int type, const QString& profile = QString(), QWidget* parent = nullptr); + virtual ~GBAKeyEditor(); public slots: void setAll();