We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f9fcd commit bf629a4Copy full SHA for bf629a4
src/grandorgue/gui/dialogs/GOMidiListDialog.cpp
@@ -112,12 +112,13 @@ void GOMidiListDialog::OnButton(wxCommandEvent &event) {
112
}
113
114
void GOMidiListDialog::OnObjectClick(wxGridEvent &event) {
115
- int index = m_Objects->GetGridCursorRow();
+ int index = event.GetRow();
116
bool isAnySelected = index >= 0;
117
118
m_Edit->Enable(isAnySelected);
119
m_Status->Enable(isAnySelected);
120
if (isAnySelected) {
121
+ m_Objects->SelectRow(index);
122
GOMidiObject *obj = r_MidiObjects[index];
123
std::vector<wxString> actions = obj->GetElementActions();
124
0 commit comments