diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-18 18:44:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-19 21:13:40 -0800 |
commit | 635d67ee7feed0ddc7a5e36d6a7f5c2ed1ee9ba1 (patch) | |
tree | ebb2ed05570cff1fd9d28efb4ae6bee29725febd /dives | |
parent | 9f573df971d84a54d5b5daba73a2f9e1498d7ee2 (diff) | |
download | subsurface-635d67ee7feed0ddc7a5e36d6a7f5c2ed1ee9ba1.tar.gz |
Dive list: clear internal data when clearing model
The DiveListModelBase::clear() implementation was flawed: It cleared
the data in the core, but left the data in the model untouched.
The code was relying on the fact that the caller would reset the
model manually. Not a good idea.
Therefore, clear the internal data to keep the model consistent at
all times.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'dives')
0 files changed, 0 insertions, 0 deletions