List last month, not year for TrainingPeaks.com

By default the TrainingPeaks.com download dialog will
fetch the last year of ride files. This can take a long
time for some users. We now only ask for the last month
by default.

Fixes #561.
This commit is contained in:
Mark Liversedge
2011-12-21 15:20:03 +00:00
parent 68ef00bc28
commit 4f30c9ea09

View File

@@ -98,7 +98,7 @@ TPDownloadDialog::completedAthlete(QList<QMap<QString, QString> >athletes)
QLabel *toLabel = new QLabel(tr("To:"), this);
from = new QDateEdit(this);
from->setDate(QDate::currentDate().addYears(-1));
from->setDate(QDate::currentDate().addMonths(-1));
from->setCalendarPopup(true);
to = new QDateEdit(this);
to->setDate(QDate::currentDate());