Commit e48fa24b authored by Langella Olivier's avatar Langella Olivier
Browse files

trying to create directory to fix issue #8

parent 9e7e5063
......@@ -24,10 +24,14 @@ MonitorAlignmentTime::setOutputDirectory(const QString &dir)
QDir output_dir = QDir(dir);
if(!output_dir.exists())
{
throw mcqError(QObject::tr("error the output directory :\n%1\n to write "
"time values does not exists.")
if(!output_dir.mkpath(output_dir.absolutePath()))
{
throw mcqError(
QObject::tr("unable to create output directory :\n%1\n to write "
"time values.")
.arg(output_dir.absolutePath()));
}
}
_outDir = dir;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment