From 3d5c3c17d318be27c1bf2cfaaf8370c128ad2a52 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Thu, 8 Dec 2022 12:47:42 -0500 Subject: [PATCH] Fix iterator comparison --- src/TimeEntryStore.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/TimeEntryStore.h b/src/TimeEntryStore.h index da96ca7..f17eb2d 100644 --- a/src/TimeEntryStore.h +++ b/src/TimeEntryStore.h @@ -101,7 +101,12 @@ class TimeEntryStore : public QAbstractListModel, public QEnableSharedFromThis= 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; }