Fix exporting all dives in Subsurface format

Exporting in Subsurface format saved only selected dives even if user
attempted to save all dives.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-07-10 16:36:53 +03:00 committed by Dirk Hohndel
parent ac2bcc8e16
commit 38403f6c98

View file

@ -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;