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:
Mark Liversedge
2013-05-30 19:49:51 +01:00
parent 894cbcc4e7
commit 6f0b2148dd

View File

@@ -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();