forked from qt-creator/qt-creator
Replace : with - in path name because : path names are invalid for some
OS
This commit is contained in:
@@ -75,7 +75,7 @@ ViewLogger::ViewLogger(QObject *parent)
|
|||||||
const QString tempPath = QDir::tempPath();
|
const QString tempPath = QDir::tempPath();
|
||||||
#endif
|
#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);
|
temporaryFile->setAutoRemove(false);
|
||||||
if (temporaryFile->open()) {
|
if (temporaryFile->open()) {
|
||||||
qDebug() << "TemporaryLoggerFile is:" << temporaryFile->fileName();
|
qDebug() << "TemporaryLoggerFile is:" << temporaryFile->fileName();
|
||||||
|
|||||||
Reference in New Issue
Block a user