Fix for ticket #555 - 'identify - some varchar column displayed instead of the key column'. This fix just corrects the erroneous way the value of the display field was being set after population, which allows setting 'cat' as the display field. The identify box then shows the results correctly.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8977 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2008-08-02 09:16:30 +00:00
parent e0692efe4b
commit bc3da6a776

View File

@ -193,7 +193,8 @@ void QgsVectorLayerProperties::reset( void )
{
displayFieldComboBox->addItem( it->name() );
}
displayFieldComboBox->setItemText( displayFieldComboBox->currentIndex(), layer->displayField() );
displayFieldComboBox->setCurrentIndex( displayFieldComboBox->findText(
layer->displayField() ) );
// set up the scale based layer visibility stuff....
chkUseScaleDependentRendering->setChecked(layer->scaleBasedVisibility());