diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-21 15:17:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-21 15:17:48 +0300 |
commit | 4c8aa3c071ef16958ad239b2ea1816b51f704115 (patch) | |
tree | c8be7e9582c7bc8ee8123c87f784bf25da48b110 /plugins/NewStory | |
parent | 89802865e9e56088c2ecde0d9c71fab46e0abbd8 (diff) |
fixes #2333 (NewStory: после переписывания настроек на классы, невозможно сохранить изменения в шаблонах)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/options.cpp | 3 |
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); |