mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
4074efc9db
commit
dc4d33d621
@ -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);
|
||||
|
@ -43,11 +43,16 @@
|
||||
<string>Manually Forwarded Port</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Hidden Node</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="hiddenMode_LB">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>This Retroshare node is running in &quot;Hidden Mode&quot;. That means it can only be reached though the TOR network.</p><p>As such, some network options are disabled.</p></body></html></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>
|
||||
|
Loading…
Reference in New Issue
Block a user