1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

Merge remote-tracking branch 'origin/bstoeger-profile'

This commit is contained in:
Dirk Hohndel 2022-09-19 09:29:52 -07:00
commit b5889f0f3c

View file

@ -246,9 +246,7 @@ void ProfileWidget2::divesChanged(const QVector<dive *> &dives, DiveField field)
{
// If the mode of the currently displayed dive changed, replot
if (field.mode &&
std::any_of(dives.begin(), dives.end(),
[id = displayed_dive.id] (const dive *d)
{ return d->id == id; } ))
std::find(dives.begin(), dives.end(), d) != dives.end())
replot();
}