fixed server page: removed hidden node option from combo box. Added a label with correct tooltip

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8130 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-04-13 19:00:09 +00:00
parent 4074efc9db
commit dc4d33d621
2 changed files with 17 additions and 12 deletions

View File

@ -145,14 +145,13 @@ void ServerPage::load()
return;
}
ui.netModeComboBox->show() ;
ui.hiddenMode_LB->hide() ;
/* set net mode */
int netIndex = 0;
switch(detail.netMode)
{
case RS_NETMODE_HIDDEN:
netIndex = 3;
ui.netModeComboBox->setEnabled(false);
break;
case RS_NETMODE_EXT:
netIndex = 2;
break;
@ -467,8 +466,9 @@ void ServerPage::loadHiddenNode()
*/
// FIXED.
ui.netModeComboBox->setCurrentIndex(3);
ui.netModeComboBox->setEnabled(false);
//ui.netModeComboBox->setCurrentIndex(3);
ui.netModeComboBox->hide();
ui.hiddenMode_LB->show();
// CHANGE OPTIONS ON
ui.discComboBox->removeItem(3);

View File

@ -43,11 +43,16 @@
<string>Manually Forwarded Port</string>
</property>
</item>
<item>
<property name="text">
<string>Hidden Node</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="hiddenMode_LB">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This Retroshare node is running in &amp;quot;Hidden Mode&amp;quot;. That means it can only be reached though the TOR network.&lt;/p&gt;&lt;p&gt;As such, some network options are disabled.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>[Hidden mode]</string>
</property>
</widget>
</item>
<item>
@ -56,7 +61,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>