diff --git a/src/cutecoin/gui/community_tab.py b/src/cutecoin/gui/community_tab.py index f54c835c8145828617b8af8b218e5c7adb942150..85ab4f7d19fd55be3d6fcb1d769e2673168fafa9 100644 --- a/src/cutecoin/gui/community_tab.py +++ b/src/cutecoin/gui/community_tab.py @@ -198,5 +198,8 @@ The process to join back the community later will have to be done again.""" QMessageBox.Ok) def refresh_person(self, pubkey): - index = self.table_community_members.model().sourceModel().person_index(pubkey) - self.table_community_members.model().sourceModel().dataChanged.emit(index[0], index[1]) + if self is None: + logging.error("community_tab self is None in refresh_person. Watcher connected to a destroyed tab") + else: + index = self.table_community_members.model().sourceModel().person_index(pubkey) + self.table_community_members.model().sourceModel().dataChanged.emit(index[0], index[1])