[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 442df199a7aeb531b5102df6273056155809fda9
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
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();
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits