]> git.stg.codes - stg.git/commitdiff
Исправлено изменение параметра passive через XML RPC
authorMaxim Mamontov <faust@gts.dp.ua>
Mon, 29 Nov 2010 14:46:29 +0000 (16:46 +0200)
committerMaxim Mamontov <faust@gts.dp.ua>
Mon, 29 Nov 2010 14:46:29 +0000 (16:46 +0200)
projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp

index c858eba1c97090259f97a22668f1ddfa9a9154ab..8e03c63ad91cdb7ce5b406c755e1c3deb7549d72 100644 (file)
@@ -251,7 +251,7 @@ if ((it = structVal.find("down")) != structVal.end())
 if ((it = structVal.find("passive")) != structVal.end())
     {
     bool value(xmlrpc_c::value_boolean(it->second));
 if ((it = structVal.find("passive")) != structVal.end())
     {
     bool value(xmlrpc_c::value_boolean(it->second));
-    if (iter->property.passive.Get())
+    if (iter->property.passive.Get() != value)
         if (!iter->property.passive.Set(value,
                                         admin,
                                         login,
         if (!iter->property.passive.Set(value,
                                         admin,
                                         login,