]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
issue #842: incorrect warning title
authorasl <asl@opencascade.com>
Tue, 25 Aug 2015 07:36:04 +0000 (10:36 +0300)
committerasl <asl@opencascade.com>
Tue, 25 Aug 2015 07:36:21 +0000 (10:36 +0300)
src/PartSet/PartSet_WidgetSketchCreator.cpp

index 3579f6e93832a1722a6b3bbe8373dff5f1529689..20d602a3a69c37500683591fc5e08a04de078038 100644 (file)
@@ -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();