From 4c8aa3c071ef16958ad239b2ea1816b51f704115 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Apr 2020 15:17:48 +0300 Subject: =?UTF-8?q?fixes=20#2333=20(NewStory:=20=D0=BF=D0=BE=D1=81=D0=BB?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BF=D0=B8=D1=81=D1=8B=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BA=20=D0=BD=D0=B0=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81?= =?UTF-8?q?=D1=8B,=20=D0=BD=D0=B5=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B2=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=D0=B0=D1=85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/options.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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); -- cgit v1.2.3