[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r1999: Small tweak to r1995 to avoid adding multiple values associa (in trunk: . src/control)
Author: edmanm
Date: 2007-10-11 13:09:30 -0400 (Thu, 11 Oct 2007)
New Revision: 1999
Modified:
trunk/
trunk/src/control/torcontrol.cpp
Log:
r2062@lysithea: edmanm | 2007-10-11 13:09:26 -0400
Small tweak to r1995 to avoid adding multiple values associated with a
single conf key too many times.
Property changes on: trunk
___________________________________________________________________
svk:merge ticket from /local/vidalia/trunk [r2062] on dc66be73-d13e-47ba-a267-8dc7cda68c65
Modified: trunk/src/control/torcontrol.cpp
===================================================================
--- trunk/src/control/torcontrol.cpp 2007-10-11 16:54:28 UTC (rev 1998)
+++ trunk/src/control/torcontrol.cpp 2007-10-11 17:09:30 UTC (rev 1999)
@@ -583,7 +583,7 @@
QString arg, value;
/* Add each keyvalue to the argument list */
- foreach (QString key, map.keys()) {
+ foreach (QString key, map.uniqueKeys()) {
foreach (QString value, map.values(key)) {
if (value.length() > 0)
cmd.addArgument(key + "=" + string_escape(value));