mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Honour RideFile::startTime
When saving the value of startTime should be checked to see if the filename/notes need to be renamed. In addition, RideItem now allows the startTime to be modified and reflected in the ride list. When importing .gc ridefiles the file is serialized with the correct startTime if the user edited it during import.
This commit is contained in:
committed by
Sean Rhea
parent
02a60735f0
commit
4e7e6cfb3a
@@ -78,12 +78,12 @@ void RideCalendar::paintCell(QPainter *painter, const QRect &rect, const QDate &
|
||||
RideIter i;
|
||||
if (ascending) {
|
||||
RideItemDateLessThan comp;
|
||||
RideItem search(0, "", "", QDateTime(date), NULL, "");
|
||||
RideItem search(0, "", "", QDateTime(date), NULL, "", NULL);
|
||||
i = std::lower_bound(begin, end, &search, comp);
|
||||
}
|
||||
else {
|
||||
RideItemDateGreaterThan comp;
|
||||
RideItem search(0, "", "", QDateTime(date.addDays(1)), NULL, "");
|
||||
RideItem search(0, "", "", QDateTime(date.addDays(1)), NULL, "", NULL);
|
||||
i = std::upper_bound(begin, end, &search, comp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user