From: sbh Date: Mon, 13 Apr 2015 12:45:07 +0000 (+0300) Subject: Hide "by general equation" case for plane creation X-Git-Tag: V_1.1.0~38^2^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c53438f30b29bf0959dc8843575566f5ce205a92;p=modules%2Fshaper.git Hide "by general equation" case for plane creation --- diff --git a/src/ConstructionPlugin/plane_widget.xml b/src/ConstructionPlugin/plane_widget.xml index 4300f5f6f..938850f41 100644 --- a/src/ConstructionPlugin/plane_widget.xml +++ b/src/ConstructionPlugin/plane_widget.xml @@ -14,23 +14,5 @@ tooltip="Distance from selected face to plane" default="0" /> - - - - - - diff --git a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp index 8cd931574..31deb0e98 100644 --- a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp @@ -47,7 +47,7 @@ int ModuleBase_WidgetSwitch::addPage(ModuleBase_PageBase* thePage, const QString int aSuperCount = ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId); myCombo->addItem(theName); int aResultCount = myCombo->count(); - if (aResultCount == 1) + if (aResultCount == 2) myCombo->show(); QFrame* aFrame = dynamic_cast(thePage); aFrame->setFrameShape(QFrame::Box);