diff options
-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; |