From 40120a373e07f7d06469eeb286fcc3b94d1a486c Mon Sep 17 00:00:00 2001 From: "Justin F. Knotzke" Date: Sun, 21 Jun 2009 16:54:35 +0000 Subject: [PATCH] Crank length updated live (you must change the ride) to see the change. Before this patch you had to restart GC. Thanks to Berend. --- src/PfPvPlot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PfPvPlot.cpp b/src/PfPvPlot.cpp index 6694626b8..0785ee671 100644 --- a/src/PfPvPlot.cpp +++ b/src/PfPvPlot.cpp @@ -100,7 +100,9 @@ PfPvPlot::setData(RideItem *rideItem) tot_cad += p1->cad; tot_cad_points++; - } + } + QSettings settings(GC_SETTINGS_CO, GC_SETTINGS_APP); + setCL(settings.value(GC_CRANKLENGTH).toDouble() / 1000.0); } // Now that we have the set of points, transform them into the