Gui: [skip ci] print warning if Assign button cannot be activated

This commit is contained in:
wmayer
2020-04-28 21:43:06 +02:00
parent 011cc3f17f
commit 2b2391fab2

View File

@@ -357,6 +357,7 @@ void DlgCustomKeyboardImp::on_editShortcut_textChanged(const QString& sc)
CommandManager & cCmdMgr = Application::Instance->commandManager();
Command* cmd = cCmdMgr.getCommandByName(name.constData());
if (cmd && !cmd->getAction()) {
Base::Console().Warning("Command %s not in use yet\n", cmd->getName());
ui->buttonAssign->setEnabled(false); // command not in use
return;
}