summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-22 18:50:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-02 08:04:49 -0700
commit30b384cebd3d488c24c211ccbb4511566d00d4f1 (patch)
tree17756cd357cf2725104e15c2b95eccbefc2ad0fc /desktop-widgets/downloadfromdivecomputer.cpp
parentad7ffa0af03718829c62621aceaaac959932ac14 (diff)
downloadsubsurface-30b384cebd3d488c24c211ccbb4511566d00d4f1.tar.gz
Import: keep model state consistent when deleting unselected dives
In DiveImportedModel::deleteDeselected(), unselected dives were deleted from the dive-table. But this left the model in an inconsistent state and the frontend was not informed of the missing dives. Fix this by invoking the appropriate beginRemoveRows()/ endRemoveRows() pairs. Move the functionality into its own function so that it can be reused by the desktop version. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.cpp')
0 files changed, 0 insertions, 0 deletions