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:
csoler 2017-02-28 22:20:52 +01:00
parent 4abf2c6bf1
commit 53186ee3ce
2 changed files with 8 additions and 5 deletions

View File

@ -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") ;

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>620</width>
<height>530</height>
<width>1161</width>
<height>804</height>
</rect>
</property>
<property name="windowTitle">
@ -1613,8 +1613,8 @@ resources.</string>
</customwidget>
</customwidgets>
<resources>
<include location="../images.qrc"/>
<include location="../icons.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/>
</ui>