Skip to content

Commit 13b7c82

Browse files
author
mhugent
committed
bug fix for #130, show default values of databases
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8435 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 99275bb commit 13b7c82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/qgsattributedialog.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
4444
myFieldItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
4545
mTable->setItem(index, 0, myFieldItem);
4646

47-
// set attribute value
48-
QTableWidgetItem * myValueItem = new QTableWidgetItem((*it).toString());
49-
mTable->setItem(index, 1, myValueItem);
50-
5147
QLineEdit *le = new QLineEdit();
5248

5349
le->setFrame(false);
@@ -61,6 +57,8 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
6157
le->setValidator( new QDoubleValidator(le) );
6258
}
6359

60+
le->setText((*it).toString());
61+
6462
mTable->setCellWidget(index, 1, le);
6563

6664
++index;

0 commit comments

Comments
 (0)