[gnc-tree-container.hpp] bugfix in operator==

when comparing two GncTreeIter, if they both were end() iterators from
differing GtkTreeModels they would have been deemed equal. Amend so
that operator== returns false.
pull/1754/head
Christopher Lam 3 years ago
parent 38435a75de
commit 63eae802a1

@ -102,6 +102,8 @@ public:
bool operator==(const GncTreeIter& other) const
{
if (m_model != other.m_model)
return false;
if (!m_iter.has_value() && !other.m_iter.has_value())
return true;
if (!m_iter.has_value() || !other.m_iter.has_value())

Loading…
Cancel
Save