New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated strategy for removing cylinders #885
Conversation
qt-models/diveplannermodel.cpp
Outdated
for (int i = 0; i < rowCount(); i++) { | ||
if (mapping[divepoints[i].cylinderid] >= 0) | ||
divepoints[i].cylinderid = mapping[divepoints[i].cylinderid]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this }
close the for
loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, indentation wrong. Will fix this... Other findings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, can't seem to find anything else.
0cd350b
to
b2e674a
Compare
Ok, indentation thing fixed. Thanks for the review! |
b2e674a
to
8419743
Compare
Small update done: Removed unused variable "cyl". |
Change the strategy when to allow cylinder removal from a dive: - Not remove when cylinder has gas switch events, in any other cases allow removal - Remove this whole "cylinder with same gas" thing being a criteria for cylinder removal When removing a cylinder which has corresponding pressure info in samples, also remove this pressure info from the samples. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
8419743
to
5c0ebde
Compare
Has @torvalds looked at this? You may have to ping him on email as he has turned off GitHub notifications... |
Looks ok to me. |
Describe the pull request:
Pull request long description:
Change the strategy when to allow cylinder removal from a dive:
allow removal
for cylinder removal
When removing a cylinder which has corresponding pressure info in
samples, also remove this pressure info from the samples.
This from my point of view simplifies our strategy for removing cylinders but also does some major changes:
Changes made:
Related issues:
Closes #869
Additional information:
Release note:
Documentation change:
Mentions: