Filter out "EMPTY "

To be used together with a curated collection of banks that use the name `EMPTY     ` instead of `INIT VOICE`
pull/466/head
probonopd 2 years ago committed by GitHub
parent 2bc226301a
commit c4dca86b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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);

Loading…
Cancel
Save