diff --git a/src/cutecoin/gui/community_tab.py b/src/cutecoin/gui/community_tab.py index 90fed680d1c145669b545334eb9d79bd383372bc..c47503d843d1db2a8bfc64ebd74e6b84a2f177da 100644 --- a/src/cutecoin/gui/community_tab.py +++ b/src/cutecoin/gui/community_tab.py @@ -101,7 +101,9 @@ class CommunityTabWidget(QWidget, Ui_CommunityTabWidget): dialog.edit_pubkey.setText(person.pubkey) dialog.combo_community.setCurrentText(self.community.name()) dialog.radio_pubkey.setChecked(True) - dialog.exec_() + if dialog.exec_() == QDialog.Accepted: + currency_tab = self.window().currencies_tabwidget.currentWidget() + currency_tab.table_history.model().invalidate() def certify_member(self): dialog = CertificationDialog(self.account, self.password_asker) diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py index 30d5bab36ed52840e90b5e77e215b2ad59e8dc7d..2679c151855098d4178117ce5d1831c8faac3c8a 100644 --- a/src/cutecoin/gui/wot_tab.py +++ b/src/cutecoin/gui/wot_tab.py @@ -3,7 +3,7 @@ import time import datetime import logging -from PyQt5.QtWidgets import QWidget, QComboBox +from PyQt5.QtWidgets import QWidget, QComboBox, QDialog from ..gen_resources.wot_tab_uic import Ui_WotTabWidget from cutecoin.gui.views.wot import NODE_STATUS_HIGHLIGHTED, NODE_STATUS_SELECTED, NODE_STATUS_OUT, ARC_STATUS_STRONG, ARC_STATUS_WEAK @@ -356,7 +356,10 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): dialog.edit_pubkey.setText(metadata['id']) dialog.combo_community.setCurrentText(self.community.name()) dialog.radio_pubkey.setChecked(True) - dialog.exec_() + + if dialog.exec_() == QDialog.Accepted: + currency_tab = self.window().currencies_tabwidget.currentWidget() + currency_tab.table_history.model().invalidate() def add_node_as_contact(self, metadata): # check if contact already exists...