]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix of bug: setAppropriate is set always for first column
authorasl <asl@opencascade.com>
Thu, 18 Mar 2010 10:25:22 +0000 (10:25 +0000)
committerasl <asl@opencascade.com>
Thu, 18 Mar 2010 10:25:22 +0000 (10:25 +0000)
src/SUIT/SUIT_TreeModel.cxx

index 3c32c174d1650b6e89fff1ed6b2075a2b2d7a148..90b1049b5bf627822cd583c182209ba352643081 100755 (executable)
@@ -580,7 +580,7 @@ QPixmap SUIT_TreeModel::columnIcon( const QString& name ) const
 void SUIT_TreeModel::setAppropriate( const QString& name, const Qtx::Appropriate appr )
 {
   for( int i=0, n=myColumns.size(); i<n; i++ )
-    if( myColumns[i].myName==name || myColumns[i].myAppropriate != appr )
+    if( myColumns[i].myName==name && myColumns[i].myAppropriate != appr )
     {
       myColumns[i].myAppropriate = appr;
       emit headerDataChanged( Qt::Horizontal, i, i );