diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-01-07 12:35:25 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-01-07 12:35:25 -0300 |
commit | d16e76cfdeb18b14cd97c9e8c7096b02aafe4da8 (patch) | |
tree | 25101ba3c59b047e645d54536d2659ef525751c7 /src/leap/bitmask/gui/wizard.py | |
parent | 61e7c5bb403ba652994b54dcea3d3bc169ef23ec (diff) | |
parent | 5e3adedc6c4de23fe8ef5ee99f3c88977c420329 (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/bug/4817_disconnect-signals-on-wizard-close' into develop
Diffstat (limited to 'src/leap/bitmask/gui/wizard.py')
-rw-r--r-- | src/leap/bitmask/gui/wizard.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/wizard.py b/src/leap/bitmask/gui/wizard.py index ec007110..b99e8db6 100644 --- a/src/leap/bitmask/gui/wizard.py +++ b/src/leap/bitmask/gui/wizard.py @@ -686,3 +686,26 @@ class Wizard(QtGui.QWizard): self.ui.lblUser.setText("") self.ui.lblPassword.setText("") self.ui.lblPassword2.setText("") + + def closeEvent(self, event): + """ + This method is called when the wizard dialog is closed. + We disconnect all the backend signals in here. + """ + try: + # disconnect backend signals + self._backend.signaler.prov_name_resolution.disconnect( + self._name_resolution) + self._backend.signaler.prov_https_connection.disconnect( + self._https_connection) + self._backend.signaler.prov_download_provider_info.disconnect( + self._download_provider_info) + + self._backend.signaler.prov_download_ca_cert.disconnect( + self._download_ca_cert) + self._backend.signaler.prov_check_ca_fingerprint.disconnect( + self._check_ca_fingerprint) + self._backend.signaler.prov_check_api_certificate.disconnect( + self._check_api_certificate) + except RuntimeError: + pass # Signal was not connected |