From 83c145c2700a03f8cf537e02daf006d66708790f Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Thu, 28 Jul 2022 11:47:35 -0300 Subject: [PATCH] ErgDB Download - add erg2 extension and uncheck All by default Add erg2 extension as one of admited workout formats to avoid Scan Workouts removing all referenes to them. Also uncheck Select All setting by default since currently there are hundreds of workouts and downloading all of them is unlikely what the users want to do, besides they are not that easy to remove. --- src/Train/ErgDBDownloadDialog.cpp | 4 ++-- src/Train/ErgFile.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Train/ErgDBDownloadDialog.cpp b/src/Train/ErgDBDownloadDialog.cpp index a76c24f38..2bcc03991 100644 --- a/src/Train/ErgDBDownloadDialog.cpp +++ b/src/Train/ErgDBDownloadDialog.cpp @@ -67,7 +67,7 @@ ErgDBDownloadDialog::ErgDBDownloadDialog(Context *context) : QDialog(context->ma // selector QCheckBox *checkBox = new QCheckBox("", this); - checkBox->setChecked(true); + checkBox->setChecked(false); files->setItemWidget(add, 0, checkBox); add->setText(1, item.name); @@ -83,7 +83,7 @@ ErgDBDownloadDialog::ErgDBDownloadDialog(Context *context) : QDialog(context->ma } all = new QCheckBox(tr("check/uncheck all"), this); - all->setChecked(true); + all->setChecked(false); // buttons QHBoxLayout *buttons = new QHBoxLayout; diff --git a/src/Train/ErgFile.cpp b/src/Train/ErgFile.cpp index f118a2865..d0658e38e 100644 --- a/src/Train/ErgFile.cpp +++ b/src/Train/ErgFile.cpp @@ -43,6 +43,7 @@ static bool setSupported() ::supported << ".gpx"; ::supported << ".tts"; ::supported << ".json"; + ::supported << ".erg2"; return true; }