all repos — mgba @ f3c723d7139b877de358c9e88ac9b401b2c58320

mGBA Game Boy Advance Emulator

Qt: Clear all override settings when closing a game
Jeffrey Pfau jeffrey@endrift.com
Thu, 12 Mar 2015 23:35:33 -0700
commit

f3c723d7139b877de358c9e88ac9b401b2c58320

parent

b9427cc0ce0e7c36c61e2ecb51b7430d8b62e88c

2 files changed, 2 insertions(+), 11 deletions(-)

jump to
M src/platform/qt/OverrideView.cppsrc/platform/qt/OverrideView.cpp

@@ -143,6 +143,7 @@ m_ui.hwLight->setEnabled(!m_ui.hwAutodetect->isChecked());

m_ui.hwTilt->setEnabled(!m_ui.hwAutodetect->isChecked()); m_ui.hwRumble->setEnabled(!m_ui.hwAutodetect->isChecked()); + m_ui.hwAutodetect->setChecked(true); m_ui.hwRTC->setChecked(false); m_ui.hwGyro->setChecked(false); m_ui.hwLight->setChecked(false);

@@ -150,7 +151,7 @@ m_ui.hwTilt->setChecked(false);

m_ui.hwRumble->setChecked(false); m_ui.idleLoop->setEnabled(true); + m_ui.idleLoop->clear(); - m_ui.clear->setEnabled(false); m_ui.save->setEnabled(false); }
M src/platform/qt/OverrideView.uisrc/platform/qt/OverrideView.ui

@@ -36,16 +36,6 @@ </property>

</spacer> </item> <item> - <widget class="QPushButton" name="clear"> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="text"> - <string>Clear</string> - </property> - </widget> - </item> - <item> <widget class="QPushButton" name="save"> <property name="enabled"> <bool>false</bool>