Skip to content

Commit f7f70bf

Browse files
committed
[dbmanager] Fixes DB Manager does not read SRID automatically
Fixes #19831
1 parent 774e734 commit f7f70bf

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

python/plugins/db_manager/dlg_import_vector.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ def setupWorkingMode(self, mode):
8080

8181
if mode == self.ASK_FOR_INPUT_MODE:
8282
self.btnChooseInputFile.clicked.connect(self.chooseInputFile)
83-
# self.cboInputLayer.lineEdit().editingFinished.connect(self.updateInputLayer)
84-
self.cboInputLayer.editTextChanged.connect(self.inputPathChanged)
85-
# self.cboInputLayer.currentIndexChanged.connect(self.updateInputLayer)
83+
self.cboInputLayer.currentTextChanged.connect(self.updateInputLayer)
8684
self.btnUpdateInputLayer.clicked.connect(self.updateInputLayer)
8785

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

161-
self.cboInputLayer.setEditText(filename)
162-
163-
def inputPathChanged(self, path):
164-
if self.cboInputLayer.currentIndex() < 0:
165-
return
166-
self.cboInputLayer.blockSignals(True)
167159
self.cboInputLayer.setCurrentIndex(-1)
168-
self.cboInputLayer.setEditText(path)
169-
self.cboInputLayer.blockSignals(False)
160+
self.cboInputLayer.setEditText(filename)
170161

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

0 commit comments

Comments
 (0)