DBManager: fix 'Update Option' button behaviour (fix #7606)

This commit is contained in:
Giuseppe Sucameli 2013-05-27 02:00:57 +02:00
parent 5d8964a475
commit cb1e47be2d

View File

@ -46,15 +46,16 @@ class DlgImportVector(QDialog, Ui_Dialog):
self.mode = self.ASK_FOR_INPUT_MODE if self.inLayer is None else self.HAS_INPUT_MODE
# updates of UI
self.setupWorkingMode( self.mode )
self.connect(self.cboSchema, SIGNAL("currentIndexChanged(int)"), self.populateTables)
self.populateSchemas()
self.populateTables()
self.populateLayers()
self.populateEncodings()
# updates of UI
self.setupWorkingMode( self.mode )
self.connect(self.cboSchema, SIGNAL("currentIndexChanged(int)"), self.populateTables)
def setupWorkingMode(self, mode):
""" hide the widget to select a layer/file if the input layer