From 74c75938bf9033f28d628c6b911e0ddc2113ed6c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 10 Feb 2014 15:12:01 -0800 Subject: 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 --- qt-ui/profile/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/profile') 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 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 -- cgit v1.2.3-70-g09d2