[tor-commits] [vidalia/alpha] Fix minor bugs: takeownership wrong condition and string formatting
chiiph at torproject.org
chiiph at torproject.org
Fri Jan 27 18:49:53 UTC 2012
commit 08361bd8ee95fd4270fb9b8a3eaa0f126caef22f
Author: Tomás Touceda <chiiph at torproject.org>
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;
}
More information about the tor-commits
mailing list