Skip to content

Commit

Permalink
fix #2408
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12891 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 6, 2010
1 parent ea9ae01 commit 4be3de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -229,10 +229,10 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
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 );

Expand Down Expand Up @@ -468,7 +468,7 @@ void QgsProjectProperties::apply()
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;
}
}
Expand Down

0 comments on commit 4be3de4

Please sign in to comment.