summaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2018-09-10 14:47:56 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-13 08:16:54 -0700
commitafe363fa8569c0634e5bc20dc54c204533a638d7 (patch)
tree556d189afc6fb2a9c2c9573345ade233635dffe8 /smtk-import
parentadbb1488e8ae3ff06983c11f954d6079cfc48cce (diff)
downloadsubsurface-afe363fa8569c0634e5bc20dc54c204533a638d7.tar.gz
Optional anonymization upon export
Add a checkbox that triggers replacement of all English characters by x's in notes, buddy, dive guide and (while we are at it) suit. This is ment for people sharing logs for debugging that are concious about privacy issues. It leaves the lenth of strings in tact as well as special charcters as those might be needed to track down a particular parsing problem. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'smtk-import')
-rw-r--r--smtk-import/smrtk2ssrfc_window.cpp2
-rw-r--r--smtk-import/smtk_standalone.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/smtk-import/smrtk2ssrfc_window.cpp b/smtk-import/smrtk2ssrfc_window.cpp
index 16f2fbf6a..432ec859e 100644
--- a/smtk-import/smrtk2ssrfc_window.cpp
+++ b/smtk-import/smrtk2ssrfc_window.cpp
@@ -87,7 +87,7 @@ void Smrtk2ssrfcWindow::on_importButton_clicked()
ui->plainTextEdit->appendPlainText(error_buf);
}
ui->progressBar->setValue(inputFiles.size());
- save_dives_logic(qPrintable(outputFile), false);
+ save_dives_logic(qPrintable(outputFile), false, false);
ui->progressBar->setDisabled(true);
}
diff --git a/smtk-import/smtk_standalone.cpp b/smtk-import/smtk_standalone.cpp
index dc152f42f..7092e26d1 100644
--- a/smtk-import/smtk_standalone.cpp
+++ b/smtk-import/smtk_standalone.cpp
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
smartrak_import(infile, &dive_table);
}
qDebug() << "\n[Writing]\n\t" << outfile << "\n";
- save_dives_logic(outfile, false);
+ save_dives_logic(outfile, false, false);
break;
}
}