diff --git a/ChangeLog.txt b/ChangeLog.txt index 50c77040e..ef5f412c0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -9,6 +9,7 @@ - [#687] Wrong seam allowance. - [#689] Grainline default values swapped around. - [#688] Difficult to enter numbers in Tape. +- Fixed bug in Tape app. Tape showed birth date in wrong locale. # Version 0.5.0 May 9, 2017 - [#581] User can now filter input lists by keyword in function wizard. diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 4151e8305..5d6897a16 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -2082,8 +2082,13 @@ void TMainWindow::InitWindow() const qint32 index = ui->comboBoxGender->findData(static_cast(m->Gender())); ui->comboBoxGender->setCurrentIndex(index); - ui->dateEditBirthDate->setDisplayFormat(QLocale().dateFormat()); - ui->dateEditBirthDate->setDate(m->BirthDate()); + { + const QLocale dateLocale = QLocale(qApp->Settings()->GetLocale()); + ui->dateEditBirthDate->setLocale(dateLocale); + ui->dateEditBirthDate->setDisplayFormat(dateLocale.dateFormat()); + ui->dateEditBirthDate->setDate(m->BirthDate()); + } + ui->lineEditEmail->setText(m->Email()); connect(ui->lineEditGivenName, &QLineEdit::editingFinished, this, &TMainWindow::SaveGivenName);