- m_edittingNew = FALSE;
- if (!event.GetText().IsEmpty())
- m_listCtrl->InsertItem(m_listCtrl->GetItemCount(), _T(""));
+ // The user edited last (empty) line, i.e. added new entry. We have to
+ // add new empty line here so that adding one more line is still
+ // possible:
+ m_listCtrl->InsertItem(m_listCtrl->GetItemCount(), _T(""));