fixed bug causing some own identities to not be editable

This commit is contained in:
csoler 2020-10-16 22:40:58 +02:00
parent acd61fd531
commit a65c59aa2a
2 changed files with 19 additions and 22 deletions

View File

@ -1276,9 +1276,6 @@ void IdDialog::updateSelection()
void IdDialog::updateIdList() void IdDialog::updateIdList()
{ {
//Disable by default, will be enable by insertIdDetails()
ui->removeIdentity->setEnabled(false);
ui->editIdentity->setEnabled(false);
//int accept = filter; //int accept = filter;
@ -1751,8 +1748,8 @@ void IdDialog::loadIdentity(RsGxsIdGroup data)
{ {
mStateHelper->setWidgetEnabled(ui->ownOpinion_CB, false); mStateHelper->setWidgetEnabled(ui->ownOpinion_CB, false);
mStateHelper->setWidgetEnabled(ui->autoBanIdentities_CB, false); mStateHelper->setWidgetEnabled(ui->autoBanIdentities_CB, false);
ui->editIdentity->setEnabled(true); // ui->editIdentity->setEnabled(true);
ui->removeIdentity->setEnabled(true); // ui->removeIdentity->setEnabled(true);
ui->chatIdentity->setEnabled(false); ui->chatIdentity->setEnabled(false);
ui->inviteButton->setEnabled(false); ui->inviteButton->setEnabled(false);
} }
@ -1761,8 +1758,8 @@ void IdDialog::loadIdentity(RsGxsIdGroup data)
// No Reputation yet! // No Reputation yet!
mStateHelper->setWidgetEnabled(ui->ownOpinion_CB, true); mStateHelper->setWidgetEnabled(ui->ownOpinion_CB, true);
mStateHelper->setWidgetEnabled(ui->autoBanIdentities_CB, true); mStateHelper->setWidgetEnabled(ui->autoBanIdentities_CB, true);
ui->editIdentity->setEnabled(false); // ui->editIdentity->setEnabled(false);
ui->removeIdentity->setEnabled(false); // ui->removeIdentity->setEnabled(false);
ui->chatIdentity->setEnabled(true); ui->chatIdentity->setEnabled(true);
ui->inviteButton->setEnabled(true); ui->inviteButton->setEnabled(true);
} }