Salome HOME
Issue #559: Control doesn't have variable if its text is empty
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSwitch.cpp
index 8cd931574f11f63c76ce57bfc12a96b68f64d3f2..31deb0e986bdc96d06893fa2c4cca5908456ac79 100644 (file)
@@ -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<QFrame*>(thePage);
   aFrame->setFrameShape(QFrame::Box);