Skip to content

Commit

Permalink
Fix iterator comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenDB committed Dec 8, 2022
1 parent 7117365 commit 3d5c3c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/TimeEntryStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ class TimeEntryStore : public QAbstractListModel, public QEnableSharedFromThis<T
return false;

if (other.m_index < 0 || other.m_index >= m_parent->size())
return m_parent->m_isAtEnd;
{
if (m_index >= 0 && m_index < m_parent->size())
return false;
else
return true;
}
else
return m_index == other.m_index;
}
Expand Down

0 comments on commit 3d5c3c1

Please sign in to comment.