Skip to content
Snippets Groups Projects
Commit 33303764 authored by inso's avatar inso
Browse files

Fix wot refresh

parent 3b9e642b
Branches
Tags
No related merge requests found
...@@ -61,17 +61,17 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): ...@@ -61,17 +61,17 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
identity_account = self.account.identity(self.community) identity_account = self.account.identity(self.community)
#Disconnect old identity #Disconnect old identity
if self._current_identity != identity:
try: try:
if self._current_identity: if self._current_identity and self._current_identity != identity:
self._current_identity.inner_data_changed.disconnect(self.handle_identity_change) self._current_identity.inner_data_changed.disconnect(self.handle_identity_change)
except TypeError as e: except TypeError as e:
if "disconnect()" in str(e): if "disconnect()" in str(e):
logging.debug("Disconnect of old identity failed.") logging.debug("Disconnect of old identity failed.")
#Connect new identity
identity.inner_data_changed.connect(self.handle_identity_change)
#Connect new identity
if self._current_identity != identity:
self._current_identity = identity self._current_identity = identity
identity.inner_data_changed.connect(self.handle_identity_change)
# create Identity from node metadata # create Identity from node metadata
certifier_list = identity.certifiers_of(self.community) certifier_list = identity.certifiers_of(self.community)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment