From bf8ecdbc47145a16a0ef22dc90d514b5eb471015 Mon Sep 17 00:00:00 2001 From: Brian Bergstrand Date: Tue, 5 Jan 2016 23:23:37 -0600 Subject: [PATCH] Fix LTM settings not getting updated properly --- src/LTMPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LTMPlot.cpp b/src/LTMPlot.cpp index 596afebd2..ab6ac83a3 100644 --- a/src/LTMPlot.cpp +++ b/src/LTMPlot.cpp @@ -1226,7 +1226,7 @@ LTMPlot::setData(LTMSettings *set) // make start date always fall on a Monday if (settings->groupBy == LTM_WEEK) { int dow = settings->start.date().dayOfWeek(); // 1-7, where 1=monday - settings->start.date().addDays(dow-1*-1); + settings->start = QDateTime(settings->start.date().addDays(dow-1*-1)); } // setup the xaxis at the bottom