From f1f7203c6764555e5748d6106edec4ff0f07f24b Mon Sep 17 00:00:00 2001 From: Joern Date: Tue, 20 Oct 2015 19:33:38 +0200 Subject: [PATCH] Add Interval Dialog ... does not recognize that Interval was added and may loose the intervals on saving ... causing inconsistency in Cache - blocking the deletion of the interval after re-starting --- src/RideItem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RideItem.cpp b/src/RideItem.cpp index 07d41b0f4..7501c0b2f 100644 --- a/src/RideItem.cpp +++ b/src/RideItem.cpp @@ -306,6 +306,9 @@ RideItem::newInterval(QString name, double start, double stop, double startKM, d // refresh metrics add->refresh(); + // still the item is dirty and needs to be saved + setDirty(true); + // and return return add; }