mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Diary Sidebar Calendar ignores first ride
Fix to check the first (0th) ride when clicking left for previous ride rather than >0th.
This commit is contained in:
@@ -648,7 +648,8 @@ GcMiniCalendar::previous()
|
||||
|
||||
// begin of month
|
||||
QDateTime bom(QDate(year,month,01), QTime(0,0,0));
|
||||
for(int i=allDates.count()-1; i>0; i--) {
|
||||
|
||||
for(int i=allDates.count()-1; i>=0; i--) {
|
||||
if (allDates.at(i) < bom) {
|
||||
|
||||
QDate date = allDates.at(i).date();
|
||||
|
||||
Reference in New Issue
Block a user