From: asl Date: Tue, 25 Aug 2015 07:36:04 +0000 (+0300) Subject: issue #842: incorrect warning title X-Git-Tag: V_1.4.0_beta4~259 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74eed44b0ecb8c47af70458dad9f841ea4ff0faa;p=modules%2Fshaper.git issue #842: incorrect warning title --- diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 3579f6e93..20d602a3a 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -124,7 +124,9 @@ void PartSet_WidgetSketchCreator::onStarted() //connect(anOperation, SIGNAL(aborted()), aWorkshop->operationMgr(), SLOT(abortAllOperations())); } else { // Break current operation - QMessageBox::warning(this, tr("Extrusion Cut"), + std::string anOperationName = feature()->getKind(); + QString aTitle = tr( anOperationName.c_str() ); + QMessageBox::warning(this, aTitle, tr("There are no bodies found. Operation aborted."), QMessageBox::Ok); ModuleBase_Operation* aOp = myModule->workshop()->currentOperation(); aOp->abort();