From: Elena Mamontova Date: Wed, 25 May 2016 08:44:40 +0000 (+0300) Subject: Ticket 37. The if-else construction and conf.ReadString() function call added for X-Git-Tag: 2.409~165 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/f593f4ebbb85b779f7424a1f49465672d2076cf4?ds=sidebyside Ticket 37. The if-else construction and conf.ReadString() function call added for the 'ChangePolicy' parameter. --- diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index 2a7eb6c1..03a672aa 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -1465,6 +1465,11 @@ if (conf.ReadString("Period", &str, "month") < 0) td->tariffConf.period = TARIFF::MONTH; else td->tariffConf.period = TARIFF::StringToPeriod(str); + +if (conf.ReadString("ChangePolicy", &str, "allow") < 0) + td->tariffConf.changePolicy = TARIFF::ALLOW; +else + td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(str); return 0; } //-----------------------------------------------------------------------------