Reset mouse wheel customization section correctly

This commit is contained in:
David Capello 2018-07-24 13:42:59 -03:00
parent f47508c21a
commit 65bc54904d

View File

@ -766,6 +766,10 @@ private:
void onReset() { void onReset() {
if (ui::Alert::show(Strings::alerts_restore_all_shortcuts()) == 1) { if (ui::Alert::show(Strings::alerts_restore_all_shortcuts()) == 1) {
m_keys.reset(); m_keys.reset();
if (!isDefaultWheelBehavior()) {
wheelBehavior()->setSelectedItem(0);
onWheelBehaviorChange();
}
listsPlaceholder()->layout(); listsPlaceholder()->layout();
} }
} }