mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix #6848
This commit is contained in:
parent
fc6b338961
commit
b6c999e776
@ -58,7 +58,7 @@ class DlgExportVector(QDialog, Ui_Dialog):
|
||||
hasGeomType = self.inLayer and self.inLayer.hasGeometryType()
|
||||
self.chkSourceSrid.setEnabled(allowSpatial and hasGeomType)
|
||||
self.chkTargetSrid.setEnabled(allowSpatial and hasGeomType)
|
||||
self.chkSpatialIndex.setEnabled(allowSpatial and hasGeomType)
|
||||
#self.chkSpatialIndex.setEnabled(allowSpatial and hasGeomType)
|
||||
|
||||
|
||||
def chooseOutputFile(self):
|
||||
@ -158,8 +158,8 @@ class DlgExportVector(QDialog, Ui_Dialog):
|
||||
return
|
||||
|
||||
# create spatial index
|
||||
if self.chkSpatialIndex.isEnabled() and self.chkSpatialIndex.isChecked():
|
||||
self.db.connector.createSpatialIndex( (schema, table), geom )
|
||||
#if self.chkSpatialIndex.isEnabled() and self.chkSpatialIndex.isChecked():
|
||||
# self.db.connector.createSpatialIndex( (schema, table), geom )
|
||||
|
||||
QMessageBox.information(self, "Export to file", "Export finished.")
|
||||
return QDialog.accept(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user