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

Explaining better why the certification button ok is disabled (Issue #84)

The certification button "Ok" is renamed to "Not a member" if a certification
cannot be emited
parent 154be797
No related branches found
No related tags found
No related merge requests found
......@@ -73,8 +73,10 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
self.community = self.account.communities[index]
if self.account.pubkey in self.community.members_pubkeys():
self.button_box.button(QDialogButtonBox.Ok).setEnabled(True)
self.button_box.button(QDialogButtonBox.Ok).setText(self.tr("Ok"))
else:
self.button_box.button(QDialogButtonBox.Ok).setEnabled(False)
self.button_box.button(QDialogButtonBox.Ok).setText(self.tr("Not a member"))
def recipient_mode_changed(self, pubkey_toggled):
self.edit_pubkey.setEnabled(pubkey_toggled)
......
......@@ -298,8 +298,9 @@ Publishing your UID cannot be canceled.""")
account_connections.append(Person.lookup(p['pubkey'], self.community))
certified_by = [p for p in account_connections
if p.pubkey not in [i.pubkey for i in certifiers_of]]
persons = certifiers_of + certified_by
self.table_identities.model().sourceModel().refresh_identities(certifiers_of + certified_by)
self.table_identities.model().sourceModel().refresh_identities(persons)
def refresh_quality_buttons(self):
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment