mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
DBManager: fix spatial index creation importing a vector layer (fix #5625)
This commit is contained in:
parent
ed801a47fa
commit
32920557b7
@ -206,7 +206,7 @@ class DlgImportVector(QDialog, Ui_DlgImportVector):
|
||||
QMessageBox.warning(self, "Import to database", u"Error %d\n%s" % (ret, errMsg) )
|
||||
return
|
||||
|
||||
if self.chkGeomColumn.isChecked() and self.chkSpatialIndex.isChecked():
|
||||
if self.chkSpatialIndex.isChecked():
|
||||
self.db.connector.createSpatialIndex( (schema, table), geom )
|
||||
|
||||
QMessageBox.information(self, "Import to database", "Import was successful.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user