]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor changes.
authorouv <ouv@opencascade.com>
Tue, 17 Sep 2013 15:10:37 +0000 (15:10 +0000)
committerouv <ouv@opencascade.com>
Tue, 17 Sep 2013 15:10:37 +0000 (15:10 +0000)
src/HYDROGUI/HYDROGUI_PolylineOp.cxx

index 45383c5c58ba150577f74f8a57576be51df0de0e..f5334fe84ff80e298511c3e101b97fecef6a6634 100755 (executable)
@@ -120,8 +120,8 @@ void HYDROGUI_PolylineOp::onCreatePreview()
     dynamic_cast<OCCViewer_ViewManager*>( anApp->createViewManager( OCCViewer_Viewer::Type() ) );
   if( myPreviewViewManager )
   {
-    anApp->selectionMgr()->setEnabled(false);
-    myPreviewViewManager->setTitle( tr( "CREATE_CURVE" ) );
+    //anApp->selectionMgr()->setEnabled(false); // what the hell?!
+    myPreviewViewManager->setTitle( tr( "CREATE_POLYLINE" ) );
     OCCViewer_Viewer* aViewer = myPreviewViewManager->getOCCViewer();
     aViewer->enableSelection(true);
     aViewer->enableMultiselection(true);
@@ -173,7 +173,7 @@ void HYDROGUI_PolylineOp::startOperation()
   else{
     myCurve = new CurveCreator_Curve(CurveCreator::Dim3d);
     aPanel->setCurve(myCurve);
-    QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), tr("POLYLINE_PREFIX") );
+    QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), "Polyline" );
     aPanel->setPolylineName(aNewName);
   }
   aPanel->setCurve(myCurve);