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,8 +69,11 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): ...@@ -69,8 +69,11 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
cancel_once_task(self, self.reset) cancel_once_task(self, self.reset)
def change_account(self, account, password_asker): def change_account(self, account, password_asker):
if self.account is not None:
self.account.certification_accepted.disconnect(self.refresh)
self.account = account self.account = account
self.password_asker = password_asker self.password_asker = password_asker
if self.account is not None:
self.account.certification_accepted.connect(self.refresh) self.account.certification_accepted.connect(self.refresh)
def change_community(self, community): def change_community(self, community):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment