From: Mathieu Westphal Date: Thu, 3 Nov 2022 08:21:07 +0000 (+0800) Subject: Fix initial state of checkboxes in MEDReader X-Git-Tag: V9_10_0rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8801e4e6717917544eca4af4b41dd136645e517;p=modules%2Fparavis.git Fix initial state of checkboxes in MEDReader --- diff --git a/src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderFieldsWidget.cxx b/src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderFieldsWidget.cxx index 253ee83e..bd0f7d89 100644 --- a/src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderFieldsWidget.cxx +++ b/src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderFieldsWidget.cxx @@ -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)