Skip to content
Snippets Groups Projects
Commit 4418abd7 authored by Vincent Texier's avatar Vincent Texier
Browse files

Fix signal handling when change_account in wot

parent ceb8664d
No related branches found
No related tags found
No related merge requests found
......@@ -69,9 +69,12 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
cancel_once_task(self, self.reset)
def change_account(self, account, password_asker):
if self.account is not None:
self.account.certification_accepted.disconnect(self.refresh)
self.account = account
self.password_asker = password_asker
self.account.certification_accepted.connect(self.refresh)
if self.account is not None:
self.account.certification_accepted.connect(self.refresh)
def change_community(self, community):
self._auto_refresh(community)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment