Skip to content

Commit

Permalink
[gnc-tree-container.hpp] bugfix in operator==
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Aug 19, 2023
1 parent c879280 commit f366bb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnucash/gnome-utils/gnc-tree-container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class GncTreeIter

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())
Expand Down

0 comments on commit f366bb8

Please sign in to comment.