From ddb2c457909a368e6d59bd8b06fd7097005f8e25 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 14 Feb 2018 21:56:12 +0100 Subject: [PATCH] disable and hide signature checkbox when key is already signed in ConnectWizard --- retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp index 4ba20fc75..cf9444b97 100755 --- a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp +++ b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp @@ -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")); }