Skip to content

Commit b74ca9d

Browse files
author
jef
committed
fix #2408
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12891 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e3066b0 commit b74ca9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/qgsprojectproperties.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
229229
currentLayer = it.value();
230230

231231
QTableWidgetItem *twi = new QTableWidgetItem( QString::number( i ) );
232-
twi->setData( Qt::UserRole, it.key() );
233232
twIdentifyLayers->setVerticalHeaderItem( i, twi );
234233

235234
twi = new QTableWidgetItem( currentLayer->name() );
235+
twi->setData( Qt::UserRole, it.key() );
236236
twi->setFlags( twi->flags() & ~Qt::ItemIsEditable );
237237
twIdentifyLayers->setItem( i, 0, twi );
238238

@@ -468,7 +468,7 @@ void QgsProjectProperties::apply()
468468
QCheckBox *cb = qobject_cast<QCheckBox *>( twIdentifyLayers->cellWidget( i, 2 ) );
469469
if ( cb && !cb->isChecked() )
470470
{
471-
QString id = twIdentifyLayers->verticalHeaderItem( i )->data( Qt::UserRole ).toString();
471+
QString id = twIdentifyLayers->item( i, 0 )->data( Qt::UserRole ).toString();
472472
noIdentifyLayerList << id;
473473
}
474474
}

0 commit comments

Comments
 (0)