mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 17:15:31 -05:00
disable auto-ban identities for own IDs
This commit is contained in:
parent
db9d202ab7
commit
61aeae67ea
@ -1878,6 +1878,7 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
if (isOwnId)
|
if (isOwnId)
|
||||||
{
|
{
|
||||||
mStateHelper->setWidgetEnabled(ui->ownOpinion_CB, false);
|
mStateHelper->setWidgetEnabled(ui->ownOpinion_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);
|
||||||
@ -1887,6 +1888,7 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
{
|
{
|
||||||
// No Reputation yet!
|
// No Reputation yet!
|
||||||
mStateHelper->setWidgetEnabled(ui->ownOpinion_CB, true);
|
mStateHelper->setWidgetEnabled(ui->ownOpinion_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);
|
||||||
@ -2086,7 +2088,7 @@ void IdDialog::modifyReputation()
|
|||||||
case 2: op = RsOpinion::POSITIVE; break;
|
case 2: op = RsOpinion::POSITIVE; break;
|
||||||
default:
|
default:
|
||||||
std::cerr << "Wrong value from opinion combobox. Bug??" << std::endl;
|
std::cerr << "Wrong value from opinion combobox. Bug??" << std::endl;
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
rsReputations->setOwnOpinion(id,op);
|
rsReputations->setOwnOpinion(id,op);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user