Skip to content
Permalink
Browse files

fix #2408

git-svn-id: http://svn.osgeo.org/qgis/trunk@12891 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 6, 2010
1 parent ea9ae01 commit 4be3de4bdaffa8c5172b427ec761a9d902e339ec
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsprojectproperties.cpp
@@ -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 );

@@ -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;
}
}

0 comments on commit 4be3de4

Please sign in to comment.
You can’t perform that action at this time.