diff --git a/src/deluge/gui/ui/sound_editor.cpp b/src/deluge/gui/ui/sound_editor.cpp index be7c42dfde..623d58728e 100644 --- a/src/deluge/gui/ui/sound_editor.cpp +++ b/src/deluge/gui/ui/sound_editor.cpp @@ -432,6 +432,7 @@ void SoundEditor::exitCompletely() { } bool SoundEditor::findPatchedParam(int32_t paramLookingFor, int32_t* xout, int32_t* yout) { + bool found = false; for (int32_t x = 0; x < 15; x++) { for (int32_t y = 0; y < kDisplayHeight; y++) { if (paramShortcutsForSounds[x][y] && paramShortcutsForSounds[x][y] != comingSoonMenu @@ -439,11 +440,15 @@ bool SoundEditor::findPatchedParam(int32_t paramLookingFor, int32_t* xout, int32 *xout = x; *yout = y; - return true; + + if ((x & 1) == currentSourceIndex) { + //check we're on the corretc index + return true; + } } } } - return false; + return found; } void SoundEditor::updateSourceBlinks(MenuItem* currentItem) {