Merge pull request #6709 from JosJuice/qt-controls-clear

DolphinQt2: Fix clearing numeric values in controller config
This commit is contained in:
Mat M 2018-04-28 13:39:25 -04:00 committed by GitHub
commit 73c91edde6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ void MappingNumeric::Connect()
void MappingNumeric::Clear() void MappingNumeric::Clear()
{ {
m_setting->SetValue(m_setting->m_low + (m_setting->m_low + m_setting->m_high) / 2); m_setting->SetValue(m_setting->m_default_value);
m_parent->SaveSettings(); m_parent->SaveSettings();
Update(); Update();
} }