diff --git a/src/cutecoin/gui/mainwindow.py b/src/cutecoin/gui/mainwindow.py index 24d95b95b106d9b5efa851899dadb81e348f3a92..f435099b8ab95ce827076ae136eb667b6921e9e7 100644 --- a/src/cutecoin/gui/mainwindow.py +++ b/src/cutecoin/gui/mainwindow.py @@ -115,7 +115,8 @@ class MainWindow(QMainWindow, Ui_MainWindow): def refresh_wallets(self): currency_tab = self.currencies_tabwidget.currentWidget() - currency_tab.refresh_wallets() + if currency_tab: + currency_tab.refresh_wallets() def refresh_communities(self): self.currencies_tabwidget.clear()