mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Set up the dive that was passed in as first dive
We carefully extracted the first dive passed in with the QList, but then always used current_dive. That's silly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4b21e2f9a3
commit
74c75938bf
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
|
|||
int maxtime = get_maxtime(&pInfo);
|
||||
int maxdepth = get_maxdepth(&pInfo);
|
||||
|
||||
dataModel->setDive(current_dive, pInfo);
|
||||
dataModel->setDive(d, pInfo);
|
||||
toolTipItem->setPlotInfo(pInfo);
|
||||
|
||||
// It seems that I'll have a lot of boilerplate setting the model / axis for
|
||||
|
|
Loading…
Add table
Reference in a new issue