[tor-commits] [vidalia/alpha] Change the basic behavior when saving settings

chiiph at torproject.org chiiph at torproject.org
Mon Mar 5 13:01:51 UTC 2012


commit 442df199a7aeb531b5102df6273056155809fda9
Author: Tomás Touceda <chiiph at torproject.org>
Date:   Fri Feb 3 22:23:41 2012 -0300

    Change the basic behavior when saving settings
    
    We want to apply them every time, and the torrc handler will take care of
    the dirty details and corner cases.
---
 src/vidalia/config/ConfigDialog.cpp |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/vidalia/config/ConfigDialog.cpp b/src/vidalia/config/ConfigDialog.cpp
index a2debf5..a92e959 100644
--- a/src/vidalia/config/ConfigDialog.cpp
+++ b/src/vidalia/config/ConfigDialog.cpp
@@ -199,10 +199,8 @@ ConfigDialog::saveChanges()
       return;
     }
   }
-  if (Vidalia::torControl()->isConnected())
-    applyChanges();
-  else
-    close();
+
+  applyChanges();
 }
 
 /** Called after Vidalia has authenticated to Tor and applies any changes
@@ -238,8 +236,7 @@ ConfigDialog::applyChanges()
     }
     appliedChanges = true;
   }
-  if (appliedChanges)
-    saveConf();      
+
   close();
 }
 





More information about the tor-commits mailing list