summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-21 15:17:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-21 15:17:48 +0300
commit4c8aa3c071ef16958ad239b2ea1816b51f704115 (patch)
treec8be7e9582c7bc8ee8123c87f784bf25da48b110 /plugins
parent89802865e9e56088c2ecde0d9c71fab46e0abbd8 (diff)
fixes #2333 (NewStory: после переписывания настроек на классы, невозможно сохранить изменения в шаблонах)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/options.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp
index 566a3c4bec..d81d5b0bbf 100644
--- a/plugins/NewStory/src/options.cpp
+++ b/plugins/NewStory/src/options.cpp
@@ -102,6 +102,9 @@ public:
bool OnApply() override
{
+ if (m_curr != nullptr)
+ replaceStrW(m_curr->tmpValue, m_edit.GetText());
+
for (auto &it : templates) {
if (it.tmpValue) {
replaceStrW(it.value, it.tmpValue);