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
@ -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…
x
Reference in New Issue
Block a user