diff options
author | Alex <b0ris@b0ris-satellite.localdomain> | 2012-01-06 01:51:17 +0200 |
---|---|---|
committer | Alex <b0ris@b0ris-satellite.localdomain> | 2012-01-06 01:51:17 +0200 |
commit | f22688420706f881da8cf9a9d1ef9eb752a23125 (patch) | |
tree | 4a3ad26ccb59fc09cb7f83d6eeb069ce0e68cacf /client/Proxifier.cpp | |
parent | ac5fac669d8162a81f77cc2f34be85f07e31f8f6 (diff) |
FIX Proxifier's config modification bug
Diffstat (limited to 'client/Proxifier.cpp')
-rw-r--r-- | client/Proxifier.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/Proxifier.cpp b/client/Proxifier.cpp index c8e7cf8..c3d9d6a 100644 --- a/client/Proxifier.cpp +++ b/client/Proxifier.cpp @@ -800,9 +800,13 @@ bool Proxifier::RemoveProxyFromChain(int proxyId, int chainId) chainElem.removeChild(proxyElem); break; } + // proceed to the next chain proxy + proxyElem = proxyElem.nextSiblingElement("Proxy"); } break; } + // proceed to the next chain + chainElem = chainElem.nextSiblingElement("Chain"); } // update state to reflect all the changes ReadChainList(root); @@ -977,6 +981,8 @@ bool Proxifier::SetRuleAction(string& name, string& action, int actId) ruleElem.appendChild(newActionElem); break; } + // proceed to the next rule + ruleElem = ruleElem.nextSiblingElement("Rule"); } // update state to reflect all the changes ReadRuleList(root); @@ -1036,6 +1042,8 @@ bool Proxifier::RemoveRule(string& name) ruleListElem.removeChild(ruleElem); break; } + // proceed to the next rule + ruleElem = ruleElem.nextSiblingElement("Rule"); } // update state to reflect all the changes ReadRuleList(root); |