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

OS
This commit is contained in:
Marco Bubke
2010-02-17 14:54:01 +01:00
parent 8584dfc591
commit fb3fe32c27

View File

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