From 48fb343b635fc51b50739cc09724da7d00ec8940 Mon Sep 17 00:00:00 2001 From: ana Date: Thu, 8 Nov 2012 15:07:36 +0000 Subject: [PATCH] Fix for the "0051573: TC6.6.0: Clipping - Select all check-box behavior is wrong" issue. --- src/SMESHGUI/SMESHGUI_ClippingDlg.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx index 82638364b..993f69f28 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx @@ -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 ); } -- 2.39.2