[tor-commits] [vidalia/alpha] Fix #4290.
chiiph at torproject.org
chiiph at torproject.org
Sat Dec 24 20:54:40 UTC 2011
commit fe2070791056354f17296f48bc109f4e715d6b81
Author: Kamran Riaz Khan <krkhan at inspirated.com>
Date: Sun Oct 30 13:56:15 2011 +0500
Fix #4290.
Give an error if bridges option is checked and none are specified.
---
src/vidalia/config/NetworkPage.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/vidalia/config/NetworkPage.cpp b/src/vidalia/config/NetworkPage.cpp
index 0fa33ca..e67686c 100644
--- a/src/vidalia/config/NetworkPage.cpp
+++ b/src/vidalia/config/NetworkPage.cpp
@@ -317,6 +317,13 @@ NetworkPage::save(QString &errmsg)
}
settings.setReachablePorts(reachablePorts);
+ if (ui.chkUseBridges->isChecked()) {
+ if (ui.listBridges->count() < 1) {
+ errmsg = tr("You must specify one or more briges.");
+ return false;
+ }
+ }
+
/* Save the bridge settings */
settings.setUseBridges(ui.chkUseBridges->isChecked());
for (int i = 0; i < ui.listBridges->count(); i++)
More information about the tor-commits
mailing list