Skip to content
Snippets Groups Projects
Commit e69218d3 authored by Olivier Langella's avatar Olivier Langella
Browse files

set autoremove true for temp files

parent 3cb08a1e
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@
TandemBatchProcess::TandemBatchProcess(WorkMonitorInterface * p_monitor, const TandemRunBatch & tandem_run_batch) {
_tandem_run_batch = tandem_run_batch;
_p_monitor = p_monitor;
_tmp_database_file.setAutoRemove(true);
}
TandemBatchProcess::~TandemBatchProcess() {
......@@ -67,7 +68,6 @@ void TandemBatchProcess::writeXmlDatabaseFile (QXmlStreamWriter * p_out) {
}
void TandemBatchProcess::prepareXmlDatabaseFile() {
_tmp_database_file.setAutoRemove(true);
if (_tmp_database_file.open())
{
......@@ -177,7 +177,7 @@ void TandemBatchProcess::writeXmlInputFile (QXmlStreamWriter * p_out, const QStr
void TandemBatchProcess::runOne(const QString & mz_file) {
QTemporaryFile xml_input_file;
xml_input_file.setAutoRemove(false);
xml_input_file.setAutoRemove(true);
if (xml_input_file.open())
{
QXmlStreamWriter * p_out = new QXmlStreamWriter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment