Skip to content

Commit

Permalink
fix filename entry and range specification for vector attributes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9451 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 7, 2008
1 parent 438dd76 commit 7168071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsattributedialog.cpp
Expand Up @@ -370,7 +370,7 @@ void QgsAttributeDialog::accept()
myFieldValue = QString::number( dsb->value() );
}

le = mpWidgets.value( myIndex )->findChild<QLineEdit *>( "lineEdit" );
le = mpWidgets.value( myIndex )->findChild<QLineEdit *>();
if ( le )
{
myFieldValue = le->text();
Expand Down
5 changes: 3 additions & 2 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -501,12 +501,13 @@ void QgsVectorLayerProperties::apply()
{
int idx = tblAttributes->item( i, 0 )->text().toInt();
const QgsField &field = layer->pendingFields()[idx];
QgsVectorLayer::EditType editType = layer->editType( idx );

QComboBox *cb = dynamic_cast<QComboBox*>( tblAttributes->cellWidget( i, 6 ) );
if ( !cb )
continue;
layer->setEditType( idx, ( QgsVectorLayer::EditType ) cb->itemData( cb->currentIndex() ).toInt() );

QgsVectorLayer::EditType editType = ( QgsVectorLayer::EditType ) cb->itemData( cb->currentIndex() ).toInt();
layer->setEditType( idx, editType );

if ( editType == QgsVectorLayer::ValueMap )
{
Expand Down

0 comments on commit 7168071

Please sign in to comment.