From: <sv...@op...> - 2024-11-15 22:38:16
|
Author: sagamusix Date: Fri Nov 15 23:38:02 2024 New Revision: 22196 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22196 Log: [Fix] When grouped view is not available, don't allow key choice editing to start when clicking in the second column of an (emulated) group header. Modified: trunk/OpenMPT/mptrack/KeyConfigDlg.cpp Modified: trunk/OpenMPT/mptrack/KeyConfigDlg.cpp ============================================================================== --- trunk/OpenMPT/mptrack/KeyConfigDlg.cpp Fri Nov 15 23:27:37 2024 (r22195) +++ trunk/OpenMPT/mptrack/KeyConfigDlg.cpp Fri Nov 15 23:38:02 2024 (r22196) @@ -698,7 +698,7 @@ void COptionsKeyboard::OnListenForKeysFromList(NMHDR *pNMHDR, LRESULT *) { auto hdr = reinterpret_cast<const NMLISTVIEW *>(pNMHDR); - if(hdr->iSubItem == 1) + if(m_curCommand != kcNull && hdr->iSubItem == 1) OnListenForKeys(); } |