Skip to content

Commit

Permalink
Fix for ticket #555 - 'identify - some varchar column displayed inste…
Browse files Browse the repository at this point in the history
…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@8977 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 2, 2008
1 parent 845ed72 commit 75f90f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsvectorlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 75f90f7

Please sign in to comment.