From 43f3ea3d03bef1c22f29ef0c279acae616f2c876 Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Sat, 4 Apr 2015 12:56:42 +0200 Subject: [PATCH] Fix bug trying to access table_history at the wrong place --- src/cutecoin/gui/community_tab.py | 2 +- src/cutecoin/gui/mainwindow.py | 4 ++-- src/cutecoin/gui/wallets_tab.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cutecoin/gui/community_tab.py b/src/cutecoin/gui/community_tab.py index 85ab4f7d..0e9188a2 100644 --- a/src/cutecoin/gui/community_tab.py +++ b/src/cutecoin/gui/community_tab.py @@ -127,7 +127,7 @@ class CommunityTabWidget(QWidget, Ui_CommunityTabWidget): dialog.radio_pubkey.setChecked(True) if dialog.exec_() == QDialog.Accepted: currency_tab = self.window().currencies_tabwidget.currentWidget() - currency_tab.table_history.model().invalidate() + currency_tab.tab_history.table_history.model().invalidate() def certify_member(self, person): dialog = CertificationDialog(self.account, self.password_asker) diff --git a/src/cutecoin/gui/mainwindow.py b/src/cutecoin/gui/mainwindow.py index 480f56ea..20f33fd7 100644 --- a/src/cutecoin/gui/mainwindow.py +++ b/src/cutecoin/gui/mainwindow.py @@ -170,7 +170,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): logging.debug("Busybar : {:} : {:}".format(value, maximum)) self.busybar.setValue(value) self.busybar.setMaximum(maximum) - + if self.app.current_account: self.app.save_cache(self.app.current_account) @@ -194,7 +194,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): dialog.accepted.connect(self.refresh_wallets) if dialog.exec_() == QDialog.Accepted: currency_tab = self.currencies_tabwidget.currentWidget() - currency_tab.table_history.model().invalidate() + currency_tab.tab_history.table_history.model().invalidate() def open_certification_dialog(self): dialog = CertificationDialog(self.app.current_account, diff --git a/src/cutecoin/gui/wallets_tab.py b/src/cutecoin/gui/wallets_tab.py index 7702046e..1274bb5f 100644 --- a/src/cutecoin/gui/wallets_tab.py +++ b/src/cutecoin/gui/wallets_tab.py @@ -189,4 +189,4 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab): dialog.radio_pubkey.setChecked(True) if dialog.exec_() == QDialog.Accepted: currency_tab = self.window().currencies_tabwidget.currentWidget() - currency_tab.table_history.model().invalidate() + currency_tab.tab_history.table_history.model().invalidate() -- GitLab