add friend wizard - refinements for hidden nodes

This commit is contained in:
RetroPooh 2017-01-24 22:56:55 +03:00 committed by csoler
parent 03b5fb663e
commit da41343899

View File

@ -545,6 +545,18 @@ void ConnectFriendWizard::initializePage(int id)
ui->signersEdit->setPlainText(ts);
fillGroups(this, ui->groupComboBox, groupId);
if(peerDetails.isHiddenNode)
{
ui->_addIPToWhiteList_CB_2->setEnabled(false) ;
ui->_require_WL_CB_2->setEnabled(false) ;
ui->_addIPToWhiteList_ComboBox_2->setEnabled(false) ;
ui->_addIPToWhiteList_ComboBox_2->addItem("(Hidden node)") ;
int S = QFontMetricsF(ui->ipEdit->font()).height() ;
ui->ipEdit->setToolTip("This is a Hidden node - you need tor/i2p proxy to connect");
ui->ipLabel->setPixmap(QPixmap(":/images/anonymous_128_blue.png").scaledToHeight(S*2,Qt::SmoothTransformation));
ui->ipLabel->setToolTip("This is a Hidden node - you need tor/i2p proxy to connect");
}
}
break;
case Page_FriendRequest: