[tor-commits] [vidalia/alpha] Automatically add bridge if it's in the lineEdit when pressing Ok

chiiph at torproject.org chiiph at torproject.org
Fri Jun 29 23:14:47 UTC 2012


commit 4f58c63de35c602506ae6b9a215bd33592c90e0f
Author: Tomás Touceda <chiiph at torproject.org>
Date:   Fri Jun 29 20:13:11 2012 -0300

    Automatically add bridge if it's in the lineEdit when pressing Ok
---
 changes/bug5107                    |    3 +++
 src/vidalia/config/NetworkPage.cpp |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/changes/bug5107 b/changes/bug5107
new file mode 100644
index 0000000..47ba055
--- /dev/null
+++ b/changes/bug5107
@@ -0,0 +1,3 @@
+  Bugfixes relative to Vidalia 0.2.x:
+  o Automatically add a bridge if it is in the lineEdit but the user haven't
+    pressed the plus button. Fixes bug 5107.
diff --git a/src/vidalia/config/NetworkPage.cpp b/src/vidalia/config/NetworkPage.cpp
index beeb075..ea132e6 100644
--- a/src/vidalia/config/NetworkPage.cpp
+++ b/src/vidalia/config/NetworkPage.cpp
@@ -254,6 +254,10 @@ NetworkPage::save(QString &errmsg)
   }
   _settings->setReachablePorts(reachablePorts);
 
+  if (!ui.lineBridge->text().trimmed().isEmpty())
+    addBridge();
+
+
   if (ui.chkUseBridges->isChecked()) {
     if (ui.listBridges->count() < 1) {
       errmsg = tr("You must specify one or more bridges.");



More information about the tor-commits mailing list