summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-11 22:12:32 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-11 22:12:32 +0300
commitf08d7ca39e7af7d1b142cd059adfffa1487d00d9 (patch)
treed081c9993a88ffc5c64da6b7d6c0eaa7dcb52d2b /plugins/NewStory
parent34bc77cc6768f5c4b678ff842f9d220c4e30215a (diff)
fixes #3907 (NewStory: состояние строки поиска запоминается, а состояние кнопки поиска нет)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history_dlg.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp
index 6127800c17..4e74bbe53f 100644
--- a/plugins/NewStory/src/history_dlg.cpp
+++ b/plugins/NewStory/src/history_dlg.cpp
@@ -430,9 +430,12 @@ public:
// filterbar
btnFilter.MakePush();
- btnSearch.MakePush();
btnTimeTree.MakePush();
+ btnSearch.MakePush();
+ if (m_dwOptions & WND_OPT_SEARCHBAR)
+ btnSearch.Push(true);
+
m_hwndChkDateFrom = GetDlgItem(m_hwnd, IDC_CHK_DATE_FROM);
m_hwndChkDateTo = GetDlgItem(m_hwnd, IDC_CHK_DATE_TO);
m_hwndDateFrom = GetDlgItem(m_hwnd, IDC_DATE_FROM);