export: show progress dialog for profile exports

Simply reuse QProgressDialog interface for the TeX exports.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-05-01 21:21:50 +02:00 committed by Dirk Hohndel
parent 9ee8807af7
commit 38d0fac2d1
3 changed files with 11 additions and 4 deletions

View file

@ -222,8 +222,10 @@ void DiveLogExportDialog::on_buttonBox_accepted()
}
} else if (ui->exportProfile->isChecked()) {
filename = QFileDialog::getSaveFileName(this, tr("Save profile image"), lastDir);
if (!filename.isEmpty())
exportProfile(qPrintable(filename), ui->exportSelected->isChecked());
if (!filename.isEmpty()) {
ProgressDialogCallback cb;
exportProfile(qPrintable(filename), ui->exportSelected->isChecked(), cb);
}
} else if (ui->exportProfileData->isChecked()) {
filename = QFileDialog::getSaveFileName(this, tr("Save profile data"), lastDir);
if (!filename.isEmpty())