Skip to content

Commit

Permalink
Gui: [skip ci] print warning if Assign button cannot be activated
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 28, 2020
1 parent ef6e5d1 commit 0900576
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Gui/DlgKeyboardImp.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0900576

Please sign in to comment.