From 457b3e70d012cff271435f460bafc309ff8037ff Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 2 May 2016 11:23:23 +0100 Subject: [PATCH] R compare date range signals .. refresh when compare state changes --- src/Charts/RChart.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Charts/RChart.cpp b/src/Charts/RChart.cpp index 29de3f0be..1075dff9f 100644 --- a/src/Charts/RChart.cpp +++ b/src/Charts/RChart.cpp @@ -320,6 +320,10 @@ RChart::RChart(Context *context, bool ridesummary) : GcChartWindow(context), con } else { connect(this, SIGNAL(dateRangeChanged(DateRange)), this, SLOT(runScript())); + + // refresh when comparing + connect(context, SIGNAL(compareDateRangesStateChanged(bool)), this, SLOT(runScript())); + connect(context, SIGNAL(compareDateRangesChanged()), this, SLOT(runScript())); } } else {