1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-24 07:01:16 +01:00

CommandManager::AddItemList requires flags

This commit is contained in:
Paul Licameli
2018-10-17 17:02:27 -04:00
parent 742e578d49
commit 63f20f3405
3 changed files with 7 additions and 2 deletions

View File

@@ -851,6 +851,7 @@ void CommandManager::AddItemList(const wxString & name,
size_t nItems,
CommandHandlerFinder finder,
CommandFunctorPointer callback,
CommandFlag flags,
bool bIsEffect)
{
for (size_t i = 0, cnt = nItems; i < cnt; i++) {
@@ -866,6 +867,7 @@ void CommandManager::AddItemList(const wxString & name,
i,
cnt,
bIsEffect);
entry->mask = entry->flags = flags;
CurrentMenu()->Append(entry->id, GetLabel(entry));
mbSeparatorAllowed = true;
}