Skip to content
Permalink
Browse files

fix #2523

git-svn-id: http://svn.osgeo.org/qgis/trunk@13018 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 8, 2010
1 parent a39de09 commit e41bb3466b8ecfed8e0cdf1cb161ef28aff242d3
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsnewvectorlayerdialog.cpp
@@ -120,7 +120,7 @@ void QgsNewVectorLayerDialog::on_mAddAttributeButton_clicked()
{
QString myName = mNameEdit->text();
QString myWidth = mWidth->text();
QString myPrecision = mPrecision->text();
QString myPrecision = mPrecision->isEnabled() ? mPrecision->text() : "";
//use userrole to avoid translated type string
QString myType = mTypeBox->itemData( mTypeBox->currentIndex(), Qt::UserRole ).toString();
mAttributeView->addTopLevelItem( new QTreeWidgetItem( QStringList() << myName << myType << myWidth << myPrecision ) );
@@ -133,7 +133,7 @@ void QgsNewVectorLayerDialog::on_mAddAttributeButton_clicked()

void QgsNewVectorLayerDialog::on_mRemoveAttributeButton_clicked()
{
delete( mAttributeView->currentItem() );
delete mAttributeView->currentItem();
if ( mAttributeView->topLevelItemCount() == 0 )
{
mOkButton->setEnabled( false );

0 comments on commit e41bb34

Please sign in to comment.
You can’t perform that action at this time.