Commit 1bd6bcfc authored by Philipp Hörist's avatar Philipp Hörist

AccountWizard: Use @ensure_not_destroyed for callbacks

parent 1509414b
Pipeline #5226 passed with stages
in 2 minutes and 51 seconds
......@@ -43,6 +43,8 @@ from gajim.gtk.assistant import Page
from gajim.gtk.dataform import DataFormWidget
from gajim.gtk.util import get_builder
from gajim.gtk.util import open_window
from gajim.gtk.util import ensure_not_destroyed
log = logging.getLogger('gajim.gtk.account_wizard')
......@@ -343,6 +345,7 @@ class AccountWizard(Assistant):
i += 1
return domain
@ensure_not_destroyed
def _on_register_form(self, result):
if is_error_result(result):
self._show_error_page(_('Error'),
......@@ -379,6 +382,7 @@ class AccountWizard(Assistant):
self._client.get_module('Register').submit_register_form(
form, callback=self._on_register_result)
@ensure_not_destroyed
def _on_register_result(self, result):
if is_error_result(result):
self._on_register_error(result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment