diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp index 13be8d43269..b2667fe474b 100644 --- a/src/plugins/modeleditor/actionhandler.cpp +++ b/src/plugins/modeleditor/actionhandler.cpp @@ -130,11 +130,10 @@ void ActionHandler::createActions() medit->addAction(deleteCommand, Core::Constants::G_EDIT_COPYPASTE); d->deleteAction = deleteCommand->action(); d->selectAllAction = registerCommand(Core::Constants::SELECTALL, [this]() { selectAll(); })->action(); - const std::function emptySlot; - registerCommand(Constants::ACTION_ADD_PACKAGE, emptySlot); - registerCommand(Constants::ACTION_ADD_COMPONENT, emptySlot); - registerCommand(Constants::ACTION_ADD_CLASS, emptySlot); - registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, emptySlot); + registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr); + registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr); + registerCommand(Constants::ACTION_ADD_CLASS, nullptr); + registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr); } void ActionHandler::createEditPropertiesShortcut(const Core::Id &shortcutId)