aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-10 15:12:01 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-10 15:12:01 -0800
commit74c75938bf9033f28d628c6b911e0ddc2113ed6c (patch)
tree385aa5ff3a9d7c9d3b82128777774d726f2eb981
parent4b21e2f9a30971e55c7d99d0f5d77dbdde76c075 (diff)
downloadsubsurface-74c75938bf9033f28d628c6b911e0ddc2113ed6c.tar.gz
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>
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 6b53e9bf5..d53dfba5b 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -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