Skip to content
Permalink
Browse files

Merge pull request #8022 from elpaso/bugfix-19831-db-manager-import-srid

[dbmanager] Fixes DB Manager does not read SRID automatically
  • Loading branch information
elpaso committed Sep 26, 2018
2 parents 346073a + f7f70bf commit 6aa00b14f343deb30b48c2883adf7f5b498528bc
Showing with 2 additions and 11 deletions.
  1. +2 −11 python/plugins/db_manager/dlg_import_vector.py
@@ -80,9 +80,7 @@ def setupWorkingMode(self, mode):

if mode == self.ASK_FOR_INPUT_MODE:
self.btnChooseInputFile.clicked.connect(self.chooseInputFile)
# self.cboInputLayer.lineEdit().editingFinished.connect(self.updateInputLayer)
self.cboInputLayer.editTextChanged.connect(self.inputPathChanged)
# self.cboInputLayer.currentIndexChanged.connect(self.updateInputLayer)
self.cboInputLayer.currentTextChanged.connect(self.updateInputLayer)
self.btnUpdateInputLayer.clicked.connect(self.updateInputLayer)

self.editPrimaryKey.setText(self.default_pk)
@@ -158,15 +156,8 @@ def chooseInputFile(self):
settings.setValue("/db_manager/lastUsedDir", QFileInfo(filename).filePath())
settings.setValue("/UI/lastVectorFileFilter", lastVectorFormat)

self.cboInputLayer.setEditText(filename)

def inputPathChanged(self, path):
if self.cboInputLayer.currentIndex() < 0:
return
self.cboInputLayer.blockSignals(True)
self.cboInputLayer.setCurrentIndex(-1)
self.cboInputLayer.setEditText(path)
self.cboInputLayer.blockSignals(False)
self.cboInputLayer.setEditText(filename)

def reloadInputLayer(self):
""" create the input layer and update available options """

0 comments on commit 6aa00b1

Please sign in to comment.
You can’t perform that action at this time.