From: vsv Date: Wed, 4 Jul 2018 09:59:53 +0000 (+0300) Subject: Issue #2538: Use a title of an operation instead of its Id X-Git-Tag: EDF_2018-1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d0a748820980e8f79d4e72912202680678084a3;p=modules%2Fshaper.git Issue #2538: Use a title of an operation instead of its Id --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index 03b605612..1110d1b8d 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -343,15 +343,16 @@ bool XGUI_OperationMgr::canStopOperation(ModuleBase_Operation* theOperation, if (isGrantedOperation(theOperation->id())) return true; if (theOperation && theOperation->isModified()) { + QString aTitle = theOperation->getDescription()->description(); if (theMessageKind == XGUI_AbortOperationMessage) { - QString aMessage = tr("%1 operation will be aborted.").arg(theOperation->id()); + QString aMessage = tr("%1 operation will be aborted.").arg(aTitle); myActiveMessageBox = createMessageBox(aMessage); bool aResult = myActiveMessageBox->exec() == QMessageBox::Ok; myActiveMessageBox = 0; return aResult; } else if (theMessageKind == XGUI_InformationMessage) { - QString aMessage = tr("Please validate your %1 before saving.").arg(theOperation->id()); + QString aMessage = tr("Please validate your %1 before saving.").arg(aTitle); myActiveMessageBox = createInformationBox(aMessage); myActiveMessageBox->exec(); myActiveMessageBox = 0;