commit e46a569dd7165cab14a3e3cb3e5375410ed11767 Author: Kamran Riaz Khan krkhan@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++)
tor-commits@lists.torproject.org