From 0c0f7443d5889af0e09c6506732697ae529447cd Mon Sep 17 00:00:00 2001 From: gdd Date: Fri, 7 Oct 2011 12:13:22 +0000 Subject: [PATCH] rnc : small bug fix --- src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx b/src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx index bf9346bcb..99eaa3e39 100644 --- a/src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx +++ b/src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx @@ -143,6 +143,8 @@ EntityGUI_FeatureDetectorDlg::EntityGUI_FeatureDetectorDlg( GeometryGUI* theGeom myViewButtonGroup->addButton( myViewGroup->RadioButton2, YZ ); // Front View myViewButtonGroup->addButton( myViewGroup->RadioButton3, XZ ); // Left View + myViewGroup->hide(); + mySelectionGroup = new QGroupBox(tr("GEOM_DETECT"), centralWidget()); QGridLayout* mySelectGrpLayout = new QGridLayout(mySelectionGroup); myPushButton = new QPushButton(mySelectionGroup); @@ -280,6 +282,12 @@ void EntityGUI_FeatureDetectorDlg::Init() myConstructorId = 0; myPushButton1->setDown(true); + mySelButton->click(); + mySelButton->setDown(true); + +// SetEditCurrentArgument(); + SelectionIntoArgument(); + myX2->setEnabled(false); myY2->setEnabled(false); myZ2->setEnabled(false); @@ -347,6 +355,8 @@ void EntityGUI_FeatureDetectorDlg::SetEditCurrentArgument() myEditCurrentArgument = myLineEdit; myLineEdit->setEnabled(true); } + else + myLineEdit->setEnabled(false); send->setDown(true); } @@ -356,6 +366,9 @@ void EntityGUI_FeatureDetectorDlg::SetEditCurrentArgument() //================================================================================= void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument() { + if (!myEditCurrentArgument->isEnabled()) + return; + myEditCurrentArgument->setText( "" ); LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr(); -- 2.39.2