diff options
author | Mataes <mataes2007@gmail.com> | 2020-05-07 10:12:51 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-05-07 10:12:51 +0300 |
commit | b13f39a263e1969ec35006daf8f1f5cb4fb924b3 (patch) | |
tree | 876bff0532f87c467b537e8635e9afcc3242a6df /plugins/NewStory | |
parent | 47e3d1ccb568da7bc7c4e0de340e6dad508bfe13 (diff) |
newstory: clear tree every time before building
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index 8f825b3027..512f8f37c1 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -341,12 +341,9 @@ class CHistoryDlg : public CDlgBase if (!(m_dwOptions & WND_OPT_TIMETREE)) return; + m_timeTree.DeleteAllItems(); auto *pArray = (HistoryArray *)m_histControl.SendMsg(NSM_GETARRAY, 0, 0); int numItems = pArray->getCount(); - if (!numItems) { - m_timeTree.DeleteAllItems(); - return; - } int CurYear = 0, CurMonth = 0, CurDay = 0, PrevYear = -1, PrevMonth = -1, PrevDay = -1; HTREEITEM hCurYear = 0, hCurMonth = 0, hCurDay = 0; |