From 65bc54904d490c0111f8b88048b719ef0d970d3f Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 24 Jul 2018 13:42:59 -0300 Subject: [PATCH] Reset mouse wheel customization section correctly --- src/app/commands/cmd_keyboard_shortcuts.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/commands/cmd_keyboard_shortcuts.cpp b/src/app/commands/cmd_keyboard_shortcuts.cpp index cb0ac6a9f..dd3639d73 100644 --- a/src/app/commands/cmd_keyboard_shortcuts.cpp +++ b/src/app/commands/cmd_keyboard_shortcuts.cpp @@ -766,6 +766,10 @@ private: void onReset() { if (ui::Alert::show(Strings::alerts_restore_all_shortcuts()) == 1) { m_keys.reset(); + if (!isDefaultWheelBehavior()) { + wheelBehavior()->setSelectedItem(0); + onWheelBehaviorChange(); + } listsPlaceholder()->layout(); } }