From a512706646282ebfd0d747487d5760923027ada7 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Mon, 23 Dec 2019 11:08:19 +0000 Subject: [PATCH] Bug 2262 - Scriptables are non-functional Caused by commit e496876. Problem caused by moving cookedParameter to another function, which then wasn't used. --- src/commands/CommandManager.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/commands/CommandManager.cpp b/src/commands/CommandManager.cpp index b46acb08a..27f39eec7 100644 --- a/src/commands/CommandManager.cpp +++ b/src/commands/CommandManager.cpp @@ -626,12 +626,7 @@ CommandListEntry *CommandManager::NewIdentifier(const CommandID & nameIn, const wxString & accel = options.accel; bool bIsEffect = options.bIsEffect; - CommandID cookedParameter; - const auto ¶meter = options.parameter; - if( parameter == "" ) - cookedParameter = nameIn; - else - cookedParameter = parameter; + CommandID parameter = options.parameter == "" ? nameIn : options.parameter; // if empty, new identifier's long label will be same as label, below: const auto &longLabel = options.longName;