Skip to content
Permalink
Browse files
Fix for ticket #555 - 'identify - some varchar column displayed inste…
…ad 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
  • Loading branch information
timlinux committed Aug 2, 2008
1 parent e0692ef commit bc3da6a7762a3065b0bf80d957edb7e8cb9d7992
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsvectorlayerproperties.cpp
@@ -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());

0 comments on commit bc3da6a

Please sign in to comment.