From: <sv...@op...> - 2024-07-01 19:49:45
|
Author: sagamusix Date: Mon Jul 1 21:49:33 2024 New Revision: 21122 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21122 Log: [Fix] Key config dialog: Changing the category dropdown selection while "find hotkey" field was non-empty did not refresh the key list properly. Modified: trunk/OpenMPT/mptrack/KeyConfigDlg.cpp Modified: trunk/OpenMPT/mptrack/KeyConfigDlg.cpp ============================================================================== --- trunk/OpenMPT/mptrack/KeyConfigDlg.cpp Mon Jul 1 17:45:29 2024 (r21121) +++ trunk/OpenMPT/mptrack/KeyConfigDlg.cpp Mon Jul 1 21:49:33 2024 (r21122) @@ -384,9 +384,10 @@ if(cat < 0) return; + const bool refresh = cat != m_curCategory || m_eFind.GetWindowTextLength() > 0 || m_eFindHotKey.GetWindowTextLength() > 0; m_eFind.SetWindowText(_T("")); - m_eFindHotKey.SetWindowText(_T("")); - if(cat != m_curCategory) + OnClearHotKey(); + if(refresh) { // Changed category UpdateShortcutList(cat); |