diff --git a/src/cutecoin/gui/mainwindow.py b/src/cutecoin/gui/mainwindow.py index f9f7c5c1501a1f0bdc95074706a6a87fd39bb7e1..de83ba5a54f5b4f0c19ff00fc6174f9ebf13a8eb 100644 --- a/src/cutecoin/gui/mainwindow.py +++ b/src/cutecoin/gui/mainwindow.py @@ -70,6 +70,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.homescreen = HomeScreenWidget(self.app, self.status_label) self.homescreen.frame_communities.community_tile_clicked.connect(self.change_community) + self.homescreen.toolbutton_new_account.clicked.connect(self.open_add_account_dialog) self.homescreen.toolbutton_new_account.addAction(self.action_add_account) self.homescreen.toolbutton_new_account.addAction(self.action_import) self.homescreen.button_add_community.clicked.connect(self.action_open_add_community) diff --git a/src/cutecoin/gui/process_cfg_community.py b/src/cutecoin/gui/process_cfg_community.py index ab6217d234110f9918bccaa060d78a4b73e84862..9e6625960a595767f39dd06b803ec80d81f385fa 100644 --- a/src/cutecoin/gui/process_cfg_community.py +++ b/src/cutecoin/gui/process_cfg_community.py @@ -94,6 +94,8 @@ class StepPageInit(Step): self.account.broadcast_error.connect(self.handle_error) yield from self.account.send_selfcert(password, community) self.config_dialog.community = community + else: + self.config_dialog.label_error.setText(self.tr("Pubkey already exists on the network")) else: self.config_dialog.label_error.setText(self.tr("Could not connect.")) diff --git a/src/cutecoin/models/network.py b/src/cutecoin/models/network.py index 4e6000d4a383517521b4bff51e58db59f53ea3e4..f6f6eb8b4745cf5d834a540bed7fd4c7c75033e6 100644 --- a/src/cutecoin/models/network.py +++ b/src/cutecoin/models/network.py @@ -72,6 +72,13 @@ class NetworkFilterProxyModel(QSortFilterProxyModel): and role == Qt.DisplayRole: return source_data[:5] + if index.column() == source_model.columns_types.index('current_block') \ + and role == Qt.DisplayRole: + if source_data == -1: + return "" + else + return source_data + if index.column() == source_model.columns_types.index('current_hash') \ and role == Qt.DisplayRole: return source_data[:10]