Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
  • Loading branch information
frida-161 and nyalldawson committed Dec 7, 2021
1 parent 9d84b22 commit a416d87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/MetaSearch/dialogs/maindialog.py
Expand Up @@ -93,7 +93,7 @@ def __init__(self, iface):
self.timeout = int(self.settings.value('/MetaSearch/timeout', 10))
# QgsSettings.value returns 'false' not False(!)
self.disable_ssl_verification = self.settings.value(
'/MetaSearch/disableSSL', 'false') != 'false'
'/MetaSearch/disableSSL', False, bool)

# Services tab
self.cmbConnectionsServices.activated.connect(self.save_connection)
Expand Down Expand Up @@ -162,8 +162,7 @@ def _on_ssl_state_change(state):
self.spnRecords.valueChanged.connect(_on_records_change)
self.spnTimeout.setValue(self.timeout)
self.spnTimeout.valueChanged.connect(_on_timeout_change)
self.disableSSLVerification.setCheckState(
int(self.disable_ssl_verification) * 2)
self.disableSSLVerification.setChecked(self.disable_ssl_verification)
self.disableSSLVerification.stateChanged.connect(_on_ssl_state_change)

key = '/MetaSearch/%s' % self.cmbConnectionsSearch.currentText()
Expand Down

0 comments on commit a416d87

Please sign in to comment.