mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
This patch by Tom Montgomer now uses the current date when importing a CSV file instead of defaulting to 2000.
Thanks Tom.
This commit is contained in:
@@ -32,6 +32,12 @@ void DatePickerDialog::setupUi(QDialog *DatePickerDialog)
|
||||
lblOccur = new QLabel("When did this ride occur?", this);
|
||||
mainGrid->addWidget(lblOccur, 0,0);
|
||||
dateTimeEdit = new QDateTimeEdit(this);
|
||||
|
||||
// preset dialog to today's date -thm
|
||||
QDateTime *dt = new QDateTime;
|
||||
date = dt->currentDateTime();
|
||||
dateTimeEdit->setDateTime(date);
|
||||
|
||||
mainGrid->addWidget(dateTimeEdit,0,1);
|
||||
lblBrowse = new QLabel("Choose a CSV file to upload", this);
|
||||
mainGrid->addWidget(lblBrowse, 1,0);
|
||||
|
||||
Reference in New Issue
Block a user