From b13f39a263e1969ec35006daf8f1f5cb4fb924b3 Mon Sep 17 00:00:00 2001 From: Mataes Date: Thu, 7 May 2020 10:12:51 +0300 Subject: newstory: clear tree every time before building --- plugins/NewStory/src/history.cpp | 5 +---- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3