mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
The lambda that created the list of gases took a copy not a reference of the planned dive. Of course, that never had its gases updated. Ultimately this would crash, because this sent an index of "-1" on change. Fix by 1) Using a reference to the dive, not the copy 2) Catch an invalid "-1" index (by Michael Keller <github@ike.ch>) Fixes #4188 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
cleanertablemodel.cpp | ||
cleanertablemodel.h | ||
CMakeLists.txt | ||
completionmodels.cpp | ||
completionmodels.h | ||
cylindermodel.cpp | ||
cylindermodel.h | ||
divecomputerextradatamodel.cpp | ||
divecomputerextradatamodel.h | ||
diveimportedmodel.cpp | ||
diveimportedmodel.h | ||
divelocationmodel.cpp | ||
divelocationmodel.h | ||
divepicturemodel.cpp | ||
divepicturemodel.h | ||
diveplannermodel.cpp | ||
diveplannermodel.h | ||
divesiteimportmodel.cpp | ||
divesiteimportmodel.h | ||
divesummarymodel.cpp | ||
divesummarymodel.h | ||
divetripmodel.cpp | ||
divetripmodel.h | ||
filterconstraintmodel.cpp | ||
filterconstraintmodel.h | ||
filtermodels.cpp | ||
filtermodels.h | ||
filterpresetmodel.cpp | ||
filterpresetmodel.h | ||
maplocationmodel.cpp | ||
maplocationmodel.h | ||
messagehandlermodel.cpp | ||
messagehandlermodel.h | ||
mobilelistmodel.cpp | ||
mobilelistmodel.h | ||
models.cpp | ||
models.h | ||
tankinfomodel.cpp | ||
tankinfomodel.h | ||
treemodel.cpp | ||
treemodel.h | ||
weightmodel.cpp | ||
weightmodel.h | ||
weightsysteminfomodel.cpp | ||
weightsysteminfomodel.h | ||
yearlystatisticsmodel.cpp | ||
yearlystatisticsmodel.h |