@@ -80,9 +80,7 @@ def setupWorkingMode(self, mode):
80
80
81
81
if mode == self .ASK_FOR_INPUT_MODE :
82
82
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 )
86
84
self .btnUpdateInputLayer .clicked .connect (self .updateInputLayer )
87
85
88
86
self .editPrimaryKey .setText (self .default_pk )
@@ -158,15 +156,8 @@ def chooseInputFile(self):
158
156
settings .setValue ("/db_manager/lastUsedDir" , QFileInfo (filename ).filePath ())
159
157
settings .setValue ("/UI/lastVectorFileFilter" , lastVectorFormat )
160
158
161
- self .cboInputLayer .setEditText (filename )
162
-
163
- def inputPathChanged (self , path ):
164
- if self .cboInputLayer .currentIndex () < 0 :
165
- return
166
- self .cboInputLayer .blockSignals (True )
167
159
self .cboInputLayer .setCurrentIndex (- 1 )
168
- self .cboInputLayer .setEditText (path )
169
- self .cboInputLayer .blockSignals (False )
160
+ self .cboInputLayer .setEditText (filename )
170
161
171
162
def reloadInputLayer (self ):
172
163
""" create the input layer and update available options """
0 commit comments