]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for the "0051573: TC6.6.0: Clipping - Select all check-box behavior is wrong...
authorana <ana@opencascade.com>
Thu, 8 Nov 2012 15:07:36 +0000 (15:07 +0000)
committerana <ana@opencascade.com>
Thu, 8 Nov 2012 15:07:36 +0000 (15:07 +0000)
src/SMESHGUI/SMESHGUI_ClippingDlg.cxx

index 82638364b32f185cf30d3770196a50d707bb9b7e..993f69f283d905621447ba1439af1bf0bf128f31 100644 (file)
@@ -742,14 +742,8 @@ void SMESHGUI_ClippingDlg::updateActorItem( QListWidgetItem* theItem,
         if( anItem->checkState() == Qt::Checked )
           aNbChecked++;
 
-    Qt::CheckState aCheckState = Qt::Unchecked;
-    if( aNbChecked == aNbItems )
-      aCheckState = Qt::Checked;
-    else if( aNbChecked > 0 )
-      aCheckState = Qt::PartiallyChecked;
-
     bool anIsBlocked = SelectAllCheckBox->blockSignals( true );
-    SelectAllCheckBox->setCheckState( aCheckState );
+    SelectAllCheckBox->setCheckState( aNbChecked == aNbItems ? Qt::Checked : Qt::Unchecked);
     SelectAllCheckBox->blockSignals( anIsBlocked );
   }