From 74eed44b0ecb8c47af70458dad9f841ea4ff0faa Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 25 Aug 2015 10:36:04 +0300 Subject: [PATCH] issue #842: incorrect warning title --- src/PartSet/PartSet_WidgetSketchCreator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.2