From b903e592d96cf831709e3b6ff41130adcc4b5be2 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 20 Nov 2014 11:09:08 +0000 Subject: [PATCH] Hide tooltip in CPPlot .. when not hovering over a curve, this worked ok for power but not for anything else. Because the signal was ignored when not showing power in pointHover. --- src/CPPlot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CPPlot.cpp b/src/CPPlot.cpp index 6cae58ba3..f7ea4d213 100644 --- a/src/CPPlot.cpp +++ b/src/CPPlot.cpp @@ -1256,7 +1256,8 @@ CPPlot::setRide(RideItem *rideItem) void CPPlot::pointHover(QwtPlotCurve *curve, int index) { - if (showBest && curve == modelCurve) return; // ignore model curve hover + if (criticalSeries == CriticalPowerWindow::watts && showBest && curve == modelCurve) + return; // ignore model curve hover if (index >= 0) {