Skip to content

Commit

Permalink
Refinement of the undo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed Apr 24, 2021
1 parent 3097ed1 commit 36d8c08
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/db/db/dbManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,11 @@ Manager::cancel ()
++m_current;
undo ();

} else {
// empty transactions .. just delete
erase_transactions (m_current, m_transactions.end ());
m_current = m_transactions.end ();
}

erase_transactions (m_current, m_transactions.end ());
m_current = m_transactions.end ();

}
}

Expand Down

0 comments on commit 36d8c08

Please sign in to comment.