diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-05-01 21:21:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-05-06 08:21:04 -0700 |
commit | 38d0fac2d1a074ac7de23ebb61ea06adc32cd30f (patch) | |
tree | c7208bc0d0d56b8f294efdf4958bdc1a4db74895 /desktop-widgets/divelogexportdialog.cpp | |
parent | 9ee8807af7276ee8a910561f671a8cd1936babf9 (diff) | |
download | subsurface-38d0fac2d1a074ac7de23ebb61ea06adc32cd30f.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/divelogexportdialog.cpp')
-rw-r--r-- | desktop-widgets/divelogexportdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp index 7d9a6d6ca..164ae0434 100644 --- a/desktop-widgets/divelogexportdialog.cpp +++ b/desktop-widgets/divelogexportdialog.cpp @@ -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()) |