Browse Source

network setting unification s/disable/enable/ UDP

pull/574/head
agilob 11 years ago
parent
commit
3f4550951c
No known key found for this signature in database
GPG Key ID: 2CACF3EEF598C663
  1. 4
      src/widget/form/settings/generalform.cpp
  2. 2
      src/widget/form/settings/generalsettings.ui

4
src/widget/form/settings/generalform.cpp

@ -62,7 +62,7 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) : @@ -62,7 +62,7 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
bodyUI->autoAwaySpinBox->setValue(Settings::getInstance().getAutoAwayTime());
bodyUI->cbUDPDisabled->setChecked(Settings::getInstance().getForceTCP());
bodyUI->cbUDPDisabled->setChecked(!Settings::getInstance().getForceTCP());
bodyUI->proxyAddr->setText(Settings::getInstance().getProxyAddr());
int port = Settings::getInstance().getProxyPort();
if (port != -1)
@ -153,7 +153,7 @@ void GeneralForm::onSmileyBrowserIndexChanged(int index) @@ -153,7 +153,7 @@ void GeneralForm::onSmileyBrowserIndexChanged(int index)
void GeneralForm::onUDPUpdated()
{
Settings::getInstance().setForceTCP(bodyUI->cbUDPDisabled->isChecked());
Settings::getInstance().setForceTCP(!bodyUI->cbUDPDisabled->isChecked());
}
void GeneralForm::onProxyAddrEdited()

2
src/widget/form/settings/generalsettings.ui

@ -299,7 +299,7 @@ @@ -299,7 +299,7 @@
<string extracomment="force tcp checkbox tooltip">This allows, e.g., toxing over Tor. It adds load to the Tox network however, so use only when necessary.</string>
</property>
<property name="text">
<string extracomment="Text on checkbox to disable UDP">Disable UDP (not recommended)</string>
<string extracomment="Text on checkbox to disable UDP">Enable UDP (recommended)</string>
</property>
</widget>
</item>

Loading…
Cancel
Save