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

[vidalia-svn] r2816: Use the correct field when trying to parse the severity valu (vidalia/trunk/src/torcontrol)



Author: edmanm
Date: 2008-07-01 22:09:22 -0400 (Tue, 01 Jul 2008)
New Revision: 2816

Modified:
   vidalia/trunk/src/torcontrol/torcontrol.cpp
Log:
Use the correct field when trying to parse the severity value from the 
'getinfo status/bootstrap-phase' response.


Modified: vidalia/trunk/src/torcontrol/torcontrol.cpp
===================================================================
--- vidalia/trunk/src/torcontrol/torcontrol.cpp	2008-07-01 04:36:25 UTC (rev 2815)
+++ vidalia/trunk/src/torcontrol/torcontrol.cpp	2008-07-02 02:09:22 UTC (rev 2816)
@@ -349,7 +349,7 @@
 {
   QString str = getInfo("status/bootstrap-phase").toString();
   if (!str.isEmpty()) {
-    tc::Severity severity = tc::toSeverity(str.section(' ', 1, 1));
+    tc::Severity severity = tc::toSeverity(str.section(' ', 0, 0));
     QHash<QString,QString> args = string_parse_keyvals(str);
     return BootstrapStatus(severity,
               BootstrapStatus::statusFromString(args.value("TAG")),