Skip to content

Commit

Permalink
[dbmanager] Fixes DB Manager does not read SRID automatically
Browse files Browse the repository at this point in the history
Fixes #19831
  • Loading branch information
elpaso committed Sep 25, 2018
1 parent 774e734 commit f7f70bf
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions python/plugins/db_manager/dlg_import_vector.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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 """
Expand Down

0 comments on commit f7f70bf

Please sign in to comment.