| 178 | } |
| 179 | |
| 180 | void MacroConditionMidiEdit::DeviceSelectionChanged(const MidiDevice &device) |
| 181 | { |
| 182 | if (_loading || !_entryData) { |
| 183 | return; |
| 184 | } |
| 185 | |
| 186 | if (_currentlyListening) { |
| 187 | ToggleListen(); |
| 188 | } |
| 189 | |
| 190 | { |
| 191 | auto lock = LockContext(); |
| 192 | _entryData->SetDevice(device); |
| 193 | } |
| 194 | emit HeaderInfoChanged( |
| 195 | QString::fromStdString(_entryData->GetShortDesc())); |
| 196 | } |
| 197 | |
| 198 | void MacroConditionMidiEdit::MidiMessageChanged(const MidiMessage &message) |
| 199 | { |
nothing calls this directly
no test coverage detected