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:
commit
b5889f0f3c
1 changed files with 1 additions and 3 deletions
|
@ -246,9 +246,7 @@ void ProfileWidget2::divesChanged(const QVector<dive *> &dives, DiveField field)
|
||||||
{
|
{
|
||||||
// If the mode of the currently displayed dive changed, replot
|
// If the mode of the currently displayed dive changed, replot
|
||||||
if (field.mode &&
|
if (field.mode &&
|
||||||
std::any_of(dives.begin(), dives.end(),
|
std::find(dives.begin(), dives.end(), d) != dives.end())
|
||||||
[id = displayed_dive.id] (const dive *d)
|
|
||||||
{ return d->id == id; } ))
|
|
||||||
replot();
|
replot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue