From c4dca86b1bce570af79c69233502257d28a12cfa Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 7 Apr 2023 21:47:18 +0200 Subject: [PATCH] Filter out "EMPTY " To be used together with a curated collection of banks that use the name `EMPTY ` instead of `INIT VOICE` --- src/uimenu.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/uimenu.cpp b/src/uimenu.cpp index 38aba21..ee83016 100644 --- a/src/uimenu.cpp +++ b/src/uimenu.cpp @@ -582,11 +582,10 @@ void CUIMenu::EditProgramNumber (CUIMenu *pUIMenu, TMenuEvent Event) } string voiceName = pUIMenu->m_pMiniDexed->GetVoiceName (nTG); // Skip empty voices - if (voiceName == "INIT VOICE" - || voiceName == "init voice" - || voiceName == " " - || voiceName == "----------" - || voiceName == "~~~~~~~~~~" ) + if (voiceName == "EMPTY " + || voiceName == " " + || voiceName == "----------" + || voiceName == "~~~~~~~~~~" ) { if (Event == MenuEventStepUp) { CUIMenu::EditProgramNumber (pUIMenu, MenuEventStepUp);