Skip to content

Commit

Permalink
DBManager: fix spatial index creation importing a vector layer (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Jun 9, 2012
1 parent ed801a4 commit 3292055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/dlg_import_vector.py
Expand Up @@ -206,7 +206,7 @@ def importLayer(self):
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.")
Expand Down

0 comments on commit 3292055

Please sign in to comment.