Commit fb3fe32c authored by Marco Bubke's avatar Marco Bubke
Browse files

Replace : with - in path name because : path names are invalid for some

OS
parent 8584dfc5
......@@ -75,7 +75,7 @@ ViewLogger::ViewLogger(QObject *parent)
const QString tempPath = QDir::tempPath();
#endif
QTemporaryFile *temporaryFile = new QTemporaryFile(tempPath + QString("/bauhaus-logger-%1-XXXXXX.txt").arg(QDateTime::currentDateTime().toString(Qt::ISODate)), this);
QTemporaryFile *temporaryFile = new QTemporaryFile(tempPath + QString("/bauhaus-logger-%1-XXXXXX.txt").arg(QDateTime::currentDateTime().toString(Qt::ISODate).replace(":", "-")), this);
temporaryFile->setAutoRemove(false);
if (temporaryFile->open()) {
qDebug() << "TemporaryLoggerFile is:" << temporaryFile->fileName();
......
Supports Markdown
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