mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9ee8807af7
commit
38d0fac2d1
3 changed files with 11 additions and 4 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue