[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [vidalia/alpha] Enable Exit policies tab but disable all checkboxes for bridges
commit 743a557aec4dc00815efd1f7b43ebf2225e969c7
Author: Tomas Touceda <chiiph@xxxxxxxxxx>
Date: Sat Apr 30 18:22:16 2011 -0300
Enable Exit policies tab but disable all checkboxes for bridges
---
src/vidalia/config/ServerPage.cpp | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/src/vidalia/config/ServerPage.cpp b/src/vidalia/config/ServerPage.cpp
index 16e244a..aeb9125 100644
--- a/src/vidalia/config/ServerPage.cpp
+++ b/src/vidalia/config/ServerPage.cpp
@@ -226,9 +226,6 @@ ServerPage::serverModeChanged(bool enabled)
* relay. */
ui.tabsMenu->setVisible(relayEnabled || bridgeEnabled);
- /* Disable the Exit Policies tab when bridge relay mode is selected */
- ui.tabsMenu->setTabEnabled(2, !bridgeEnabled);
-
/* Display the widgets that show the user their bridge identity if bridge
* relay mode is selected. */
ui.lblYourBridgeRelayIs->setVisible(bridgeEnabled);
@@ -241,12 +238,12 @@ ServerPage::serverModeChanged(bool enabled)
ui.lineDirPort->setEnabled(!bridgeEnabled);
ui.chkMirrorDirectory->setEnabled(!bridgeEnabled);
- ui.chkWebsites->setEnabled(!ui.rdoNonExitMode->isChecked());
- ui.chkSecWebsites->setEnabled(!ui.rdoNonExitMode->isChecked());
- ui.chkMail->setEnabled(!ui.rdoNonExitMode->isChecked());
- ui.chkIRC->setEnabled(!ui.rdoNonExitMode->isChecked());
- ui.chkIM->setEnabled(!ui.rdoNonExitMode->isChecked());
- ui.chkMisc->setEnabled(!ui.rdoNonExitMode->isChecked());
+ ui.chkWebsites->setEnabled(!bridgeEnabled and !ui.rdoNonExitMode->isChecked());
+ ui.chkSecWebsites->setEnabled(!bridgeEnabled and !ui.rdoNonExitMode->isChecked());
+ ui.chkMail->setEnabled(!bridgeEnabled and !ui.rdoNonExitMode->isChecked());
+ ui.chkIRC->setEnabled(!bridgeEnabled and !ui.rdoNonExitMode->isChecked());
+ ui.chkIM->setEnabled(!bridgeEnabled and !ui.rdoNonExitMode->isChecked());
+ ui.chkMisc->setEnabled(!bridgeEnabled and !ui.rdoNonExitMode->isChecked());
}
/** Returns true if the user has changed their server settings since the
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits