mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
set proper default options in make friend dialog, and hide the frame showing own cert since it is not needed anymore
This commit is contained in:
parent
4abf2c6bf1
commit
53186ee3ce
2 changed files with 8 additions and 5 deletions
|
@ -79,6 +79,9 @@ ConnectFriendWizard::ConnectFriendWizard(QWidget *parent) :
|
|||
mTitleFontSize = 0; // Standard
|
||||
mTitleFontWeight = 0; // Standard
|
||||
|
||||
// (csoler) I'm hiding this, since it is not needed anymore with the new Home page.
|
||||
ui->userFrame->hide();
|
||||
|
||||
// this define comes from Qt example. I don't have mac, so it wasn't tested
|
||||
#ifndef Q_OS_MAC
|
||||
setWizardStyle(ModernStyle);
|
||||
|
@ -415,7 +418,7 @@ void ConnectFriendWizard::initializePage(int id)
|
|||
{
|
||||
std::cerr << "Conclusion page id : " << peerDetails.id << "; gpg_id : " << peerDetails.gpg_id << std::endl;
|
||||
|
||||
ui->_direct_transfer_CB_2 ->setChecked(peerDetails.service_perm_flags & RS_NODE_PERM_DIRECT_DL) ;
|
||||
ui->_direct_transfer_CB_2 ->setChecked(false) ; //peerDetails.service_perm_flags & RS_NODE_PERM_DIRECT_DL) ;
|
||||
ui->_allow_push_CB_2 ->setChecked(peerDetails.service_perm_flags & RS_NODE_PERM_ALLOW_PUSH) ;
|
||||
ui->_require_WL_CB_2 ->setChecked(peerDetails.service_perm_flags & RS_NODE_PERM_REQUIRE_WL) ;
|
||||
|
||||
|
@ -426,7 +429,7 @@ void ConnectFriendWizard::initializePage(int id)
|
|||
{
|
||||
QString ipstring0 = QString::fromStdString(sockaddr_storage_iptostring(addr));
|
||||
|
||||
ui->_addIPToWhiteList_CB_2->setChecked(true) ;
|
||||
ui->_addIPToWhiteList_CB_2->setChecked(ui->_require_WL_CB_2->isChecked());
|
||||
ui->_addIPToWhiteList_ComboBox_2->addItem(ipstring0) ;
|
||||
ui->_addIPToWhiteList_ComboBox_2->addItem(ipstring0+"/24") ;
|
||||
ui->_addIPToWhiteList_ComboBox_2->addItem(ipstring0+"/16") ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue