Fix [DB Manager] Allow lowercase field names for homogenize PostGIS Import

This commit is contained in:
rldhont 2016-10-19 14:35:17 +02:00
parent 5d4cf2fd4d
commit 010fc7c640

View File

@ -78,6 +78,10 @@ class DlgImportVector(QDialog, Ui_Dialog):
self.editPrimaryKey.setText(self.default_pk)
self.editGeomColumn.setText(self.default_geom)
self.chkLowercaseFieldNames.setEnabled(self.db.hasLowercaseFieldNamesOption())
if not self.chkLowercaseFieldNames.isEnabled():
self.chkLowercaseFieldNames.setChecked(False)
else:
# set default values
self.checkSupports()