]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix initial state of checkboxes in MEDReader
authorMathieu Westphal <you@example.com>
Thu, 3 Nov 2022 08:21:07 +0000 (16:21 +0800)
committerjfa <jfa@opencascade.com>
Mon, 21 Nov 2022 14:56:52 +0000 (17:56 +0300)
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderFieldsWidget.cxx

index 253ee83e93394ab03ed3038888e122559c44ef26..bd0f7d89b7db858068b53eda70c09ce830bab83d 100644 (file)
@@ -126,7 +126,7 @@ void pqMEDReaderFieldsWidget::loadTreeWidgetItems()
         comsup->setData(0, Qt::ToolTipRole, comSupToolTipName);
 
         comsup->setFlags(comsup->flags() | Qt::ItemIsUserCheckable | Qt::ItemIsSelectable);
-        comsup->setChecked(true);
+        comsup->setChecked(false);
         QObject::connect(comsup, SIGNAL(checkedStateChanged(bool)), this, SLOT(updateChecks()));
         this->UniqueCheckedItems.push_back(comsup);
 
@@ -148,7 +148,7 @@ void pqMEDReaderFieldsWidget::loadTreeWidgetItems()
 
           array->setText(0, QString(name.c_str()));
           array->setFlags(array->flags() | Qt::ItemIsUserCheckable);
-          array->setChecked(true);
+          array->setChecked(false);
 
           // Special Field
           if (tree->GetNumberOfChildren(arrayId) != 0)