From acf439bb1d2aaa28f1408b093fad0ae13d9198cb Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sun, 5 Jan 2014 16:42:13 +0000 Subject: [PATCH] UI Nits: PfPv / QA refresh issues --- src/PfPvWindow.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/PfPvWindow.cpp b/src/PfPvWindow.cpp index ab3f8be50..c6f356885 100644 --- a/src/PfPvWindow.cpp +++ b/src/PfPvWindow.cpp @@ -226,8 +226,8 @@ void PfPvWindow::rideSelected() { // we need to refresh for compare mode - if (isVisible() && isCompare() && compareStale) { - compareChanged(); + if (isCompare()) { + if (isVisible() && compareStale) compareChanged(); return; } @@ -376,6 +376,7 @@ PfPvWindow::compareChanged() setUpdatesEnabled(false); // ensure redraws happen + setIsBlank(false); current = NULL; // we don't have a current ride compareStale = false; // but compare is no longer stale @@ -384,8 +385,11 @@ PfPvWindow::compareChanged() // set the scale and zones pfPvPlot->showCompareIntervals(); - } else - pfPvPlot->setData(myRideItem); + } else { + + // same as tab selected etc + rideSelected(); + } setUpdatesEnabled(true); }