diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-22 22:00:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-02 08:04:49 -0700 |
commit | 5037fcdbdc867c542661b0b31debd8580777c30e (patch) | |
tree | f237f108cba1ac3cc0430c75caabeb13febb2b22 /qt-models/diveplannermodel.cpp | |
parent | 087a80194a54554ab0510a3c2ccc906a448d36ba (diff) | |
download | subsurface-5037fcdbdc867c542661b0b31debd8580777c30e.tar.gz |
Import: avoid model inconsistency in DiveImportedModel::recordDives()
DiveImportedModel::recordDives() called add_imported_dives(). But that
actually consumes the dive and dive-site tables. Which in turn will
lead to an inconsistent model.
Properly reset the model by using the consumeTables() function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
0 files changed, 0 insertions, 0 deletions