-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
break;
case Qt::Key_F2:
myOperationMgr->xworkshop()->objectBrowser()->onEditItem();
+ isAccepted = true;
break;
default:
isAccepted = myOperationMgr->onKeyReleased(theObject, aKeyEvent);
if (theOperation && theOperation->isModified()) {
ModuleBase_OperationFeature* aOp = dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
std::string aContext;
- if (aOp)
+ if (aOp && aOp->feature())
aContext = aOp->feature()->getKind();
QString aTitle = Config_Translator::translate(aContext,
theOperation->getDescription()->description().toStdString()).c_str();