def populateConnectionList(self): self.cmbConnections.blockSignals(True) self.cmbConnections.clear() keys = QgsOWSConnection.connectionList("SOS") self.cmbConnections.addItems (keys) self.cmbConnections.blockSignals(False) index = self.cmbConnections.findText(QgsOWSConnection.selectedConnection("SOS")) self.cmbConnections.setCurrentIndex(index) self.on_cmbConnections_currentIndexChanged (QgsOWSConnection.selectedConnection("SOS")) QgsDebug ("populateConnectionList: selectedConnection = {}".format(QgsOWSConnection.selectedConnection("SOS")))
def populateConnectionList(self): self.cmbConnections.blockSignals(True) self.cmbConnections.clear() keys = QgsOWSConnection.connectionList("SOS") self.cmbConnections.addItems(keys) self.cmbConnections.blockSignals(False) index = self.cmbConnections.findText( QgsOWSConnection.selectedConnection("SOS")) self.cmbConnections.setCurrentIndex(index) self.on_cmbConnections_currentIndexChanged( QgsOWSConnection.selectedConnection("SOS")) QgsDebug("populateConnectionList: selectedConnection = {}".format( QgsOWSConnection.selectedConnection("SOS")))