diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-16 22:00:25 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:49 -0700 |
commit | 3b6b9951ae0595c21dc35d95126e644babbfbc2d (patch) | |
tree | 756d9521e34bf73bbe31d80bca2c7878a119d2cf /core | |
parent | c8ec2f5b1ccd72d9ed5036bf9ecfec3b5f90964b (diff) | |
download | subsurface-3b6b9951ae0595c21dc35d95126e644babbfbc2d.tar.gz |
undo: clear undo-stack when clearing dive data
When the dive data is cleared, all pointers in the undo-stack become stale.
Desktop explicitly called Command::clear() in that case, but mobile doesn't.
Thus, move the clear() call into DiveTripModelBase::clear()
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions