disable and hide signature checkbox when key is already signed in ConnectWizard

This commit is contained in:
csoler 2018-02-14 21:56:12 +01:00
parent 42b8eccfd2
commit ddb2c45790
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -511,8 +511,8 @@ void ConnectFriendWizard::initializePage(int id)
else
ui->alreadyRegisteredLabel->hide();
if(tmp_det.ownsign) {
ui->signGPGCheckBox->setChecked(true);
ui->signGPGCheckBox->setEnabled(false);
ui->signGPGCheckBox->setChecked(false); // if already signed, we dont allow to sign it again, and dont show the box.
ui->signGPGCheckBox->setVisible(false);
ui->signGPGCheckBox->setToolTip(tr("You have already signed this key"));
}