[QGIS Commit] r12891 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Feb 6 15:47:44 EST 2010


Author: jef
Date: 2010-02-06 15:47:42 -0500 (Sat, 06 Feb 2010)
New Revision: 12891

Modified:
   trunk/qgis/src/app/qgsprojectproperties.cpp
Log:
fix #2408

Modified: trunk/qgis/src/app/qgsprojectproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsprojectproperties.cpp	2010-02-06 19:27:36 UTC (rev 12890)
+++ trunk/qgis/src/app/qgsprojectproperties.cpp	2010-02-06 20:47:42 UTC (rev 12891)
@@ -229,10 +229,10 @@
     currentLayer = it.value();
 
     QTableWidgetItem *twi = new QTableWidgetItem( QString::number( i ) );
-    twi->setData( Qt::UserRole, it.key() );
     twIdentifyLayers->setVerticalHeaderItem( i, twi );
 
     twi = new QTableWidgetItem( currentLayer->name() );
+    twi->setData( Qt::UserRole, it.key() );
     twi->setFlags( twi->flags() & ~Qt::ItemIsEditable );
     twIdentifyLayers->setItem( i, 0, twi );
 
@@ -468,7 +468,7 @@
     QCheckBox *cb = qobject_cast<QCheckBox *>( twIdentifyLayers->cellWidget( i, 2 ) );
     if ( cb && !cb->isChecked() )
     {
-      QString id = twIdentifyLayers->verticalHeaderItem( i )->data( Qt::UserRole ).toString();
+      QString id = twIdentifyLayers->item( i, 0 )->data( Qt::UserRole ).toString();
       noIdentifyLayerList << id;
     }
   }



More information about the QGIS-commit mailing list