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

[tor-commits] [vidalia/alpha] Fix minor bugs: takeownership wrong condition and string formatting



commit 08361bd8ee95fd4270fb9b8a3eaa0f126caef22f
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
Date:   Fri Jan 27 15:49:10 2012 -0300

    Fix minor bugs: takeownership wrong condition and string formatting
---
 src/vidalia/MainWindow.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index 89387c0..65e1e3c 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -621,7 +621,7 @@ MainWindow::start()
     if(settings.autoControlPort()) {
       QString portconf = QString("%1/port.conf").arg(expDataDirectory);
       if(!QFile::remove(portconf))
-        vWarn(QString("Unable to remove %s, may be it didn't existed.").arg(portconf));
+        vWarn(QString("Unable to remove %1, may be it didn't existed.").arg(portconf));
 
       QString control_str = "auto";
       QString socks_str = "auto";
@@ -892,7 +892,7 @@ void
 MainWindow::connected()
 {
   authenticate();
-  if(!_torControl->isVidaliaRunningTor()) {
+  if(_torControl->isVidaliaRunningTor()) {
     QString err;
     if(!_torControl->takeOwnership(&err))
       vWarn(err);
@@ -1377,7 +1377,7 @@ MainWindow::tryCookie(const ProtocolInfo &pi)
     cookie = loadControlCookie(cookieDir);
   }
   if(cookie.size() != 32) {
-    vWarn(QString("Cookie length has to be exactly 32 bytes long. Found %s bytes")
+    vWarn(QString("Cookie length has to be exactly 32 bytes long. Found %1 bytes")
           .arg(cookie.size()));
     return false;
   }

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