From eb94b3b8e12fb7e862803f6eafdefa5833d9b037 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sun, 25 Jan 2015 20:22:19 +0200 Subject: [PATCH] Handle cash changes properly. --- .../plugins/configuration/sgconfig/parser_users.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index cd66ec9e..7c6a46bb 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -584,9 +584,11 @@ int CHG_USER::ApplyChanges() &m_store, m_cashMsg)) return -1; - else - if (!u->GetProperty().cash.Set(m_usr.cash.const_data(), &m_currAdmin, m_login, &m_store, m_cashMsg)) - return -1; + } + else + { + if (!u->GetProperty().cash.Set(m_usr.cash.const_data(), &m_currAdmin, m_login, &m_store, m_cashMsg)) + return -1; } -- 2.44.2