mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
When exporting to XML and no extension given, default to .ssrf
See #646 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4cb80986fc
commit
ebdeddb9b9
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ void DiveLogExportDialog::on_buttonBox_accepted()
|
|||
filename = QFileDialog::getSaveFileName(this, tr("Export Subsurface XML"), lastDir,
|
||||
tr("XML files (*.xml *.ssrf)"));
|
||||
if (!filename.isNull() && !filename.isEmpty()) {
|
||||
if (!filename.contains('.'))
|
||||
filename.append(".ssrf");
|
||||
QByteArray bt = QFile::encodeName(filename);
|
||||
save_dives_logic(bt.data(), ui->exportSelected->isChecked());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue