Skip to content
Permalink
Browse files
fix filename entry and range specification for vector attributes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9451 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 7, 2008
1 parent e0663b4 commit d9e0946a5b38cc2b6a20fef98f3a889f8820df3d
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/app/qgsattributedialog.cpp
  2. +3 −2 src/app/qgsvectorlayerproperties.cpp
@@ -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();
@@ -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 )
{

0 comments on commit d9e0946

Please sign in to comment.