[PATCH] Fix exporting all dives in Subsurface format
Miika Turkia
miika.turkia at gmail.com
Thu Jul 10 06:36:53 PDT 2014
Exporting in Subsurface format saved only selected dives even if user
attempted to save all dives.
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
qt-ui/divelogexportdialog.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index c230268..f2ff0d1 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -168,7 +168,7 @@ void DiveLogExportDialog::on_buttonBox_accepted()
tr("XML files (*.xml *.ssrf)"));
if (!filename.isNull() && !filename.isEmpty()) {
QByteArray bt = QFile::encodeName(filename);
- save_dives_logic(bt.data(), true);
+ save_dives_logic(bt.data(), ui->exportSelected->isChecked());
}
}
break;
--
1.9.1
More information about the subsurface
mailing list