midi selection - need to save the current object before destroying the menu.

This commit is contained in:
Kelvin Sherlock 2022-02-28 09:34:05 -05:00
parent 2b2f3a2fd8
commit d258fd2a48
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,8 @@ static NSString *kNone = @"—None—";
NSArray *array = _category == kIndexMidiIn ? [mgr sources] : [mgr destinations];
[menu removeAllItems];
NSString *selected = [[_popUpButton selectedItem] representedObject];
[menu removeAllItems];
int selectedIndex = -1;
NSMenuItem *item;