Skip to content

Commit 3292055

Browse files
committed
DBManager: fix spatial index creation importing a vector layer (fix #5625)
1 parent ed801a4 commit 3292055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/db_manager/dlg_import_vector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def importLayer(self):
206206
QMessageBox.warning(self, "Import to database", u"Error %d\n%s" % (ret, errMsg) )
207207
return
208208

209-
if self.chkGeomColumn.isChecked() and self.chkSpatialIndex.isChecked():
209+
if self.chkSpatialIndex.isChecked():
210210
self.db.connector.createSpatialIndex( (schema, table), geom )
211211

212212
QMessageBox.information(self, "Import to database", "Import was successful.")

0 commit comments

Comments
 (0)