diff options
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/options.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp index f1c82568e0..f6c681bda2 100644 --- a/plugins/NewStory/src/options.cpp +++ b/plugins/NewStory/src/options.cpp @@ -156,13 +156,12 @@ public: void onClick_Reset(CCtrlButton *) { - for (auto &it : templates) { - replaceStrW(it.tmpValue, nullptr); - replaceStrW(it.value, nullptr); + if (m_curr) { + replaceStrW(m_curr->tmpValue, nullptr); + replaceStrW(m_curr->value, nullptr); + m_edit.SetText(m_curr->defvalue); } - if (m_curr) - m_edit.SetText(m_curr->defvalue); UpdatePreview(0); NotifyChange(); } |