Skip to content
Snippets Groups Projects
Commit ebd6f6c1 authored by inso's avatar inso
Browse files

Diverse fixes in display

parent aa9f1705
Branches
Tags
No related merge requests found
...@@ -70,6 +70,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): ...@@ -70,6 +70,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.homescreen = HomeScreenWidget(self.app, self.status_label) self.homescreen = HomeScreenWidget(self.app, self.status_label)
self.homescreen.frame_communities.community_tile_clicked.connect(self.change_community) 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_add_account)
self.homescreen.toolbutton_new_account.addAction(self.action_import) self.homescreen.toolbutton_new_account.addAction(self.action_import)
self.homescreen.button_add_community.clicked.connect(self.action_open_add_community) self.homescreen.button_add_community.clicked.connect(self.action_open_add_community)
......
...@@ -94,6 +94,8 @@ class StepPageInit(Step): ...@@ -94,6 +94,8 @@ class StepPageInit(Step):
self.account.broadcast_error.connect(self.handle_error) self.account.broadcast_error.connect(self.handle_error)
yield from self.account.send_selfcert(password, community) yield from self.account.send_selfcert(password, community)
self.config_dialog.community = community self.config_dialog.community = community
else:
self.config_dialog.label_error.setText(self.tr("Pubkey already exists on the network"))
else: else:
self.config_dialog.label_error.setText(self.tr("Could not connect.")) self.config_dialog.label_error.setText(self.tr("Could not connect."))
......
...@@ -72,6 +72,13 @@ class NetworkFilterProxyModel(QSortFilterProxyModel): ...@@ -72,6 +72,13 @@ class NetworkFilterProxyModel(QSortFilterProxyModel):
and role == Qt.DisplayRole: and role == Qt.DisplayRole:
return source_data[:5] 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') \ if index.column() == source_model.columns_types.index('current_hash') \
and role == Qt.DisplayRole: and role == Qt.DisplayRole:
return source_data[:10] return source_data[:10]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment