diff --git a/src/sakia/core/account.py b/src/sakia/core/account.py index bd74963934333abd688896bad8434fb41a1a95de..ab5323ee249699ab0a89e544d06306e23f9d87de 100644 --- a/src/sakia/core/account.py +++ b/src/sakia/core/account.py @@ -33,6 +33,7 @@ class Account(QObject): loading_progressed = pyqtSignal(Community, int, int) loading_finished = pyqtSignal(Community, list) wallets_changed = pyqtSignal() + certification_accepted = pyqtSignal() def __init__(self, salt, pubkey, name, communities, wallets, contacts, identities_registry): """ @@ -496,6 +497,8 @@ class Account(QObject): for r in responses: if r.status == 200: result = (True, (yield from r.json())) + # signal certification to all listeners + self.certification_accepted.emit() elif not result[0]: result = (False, (yield from r.text())) else: diff --git a/src/sakia/gui/wot_tab.py b/src/sakia/gui/wot_tab.py index e51c902d444f9afc77e4eeae7ff6b3a4f4f1b934..2076a935f77569fb50524d7129e97cc08f4d0cfa 100644 --- a/src/sakia/gui/wot_tab.py +++ b/src/sakia/gui/wot_tab.py @@ -71,6 +71,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): def change_account(self, account, password_asker): self.account = account self.password_asker = password_asker + self.account.certification_accepted.connect(self.refresh) def change_community(self, community): self._auto_refresh(community)