Commit ac702392 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Move log files to /tmp (Mac OS X)

parent 2a0d9b2e
......@@ -67,17 +67,12 @@ ViewLogger::ViewLogger(QObject *parent)
: AbstractView(parent)
#ifdef Q_OS_MAC
const QLatin1String logPath("Library/Logs/Bauhaus");
QDir logDir(QDir::homePath());
const QString tempPath = QDir::homePath() + QDir::separator() + logPath;
const QString tempPath = "/tmp";
const QString tempPath = QDir::tempPath();
QTemporaryFile *temporaryFile = new QTemporaryFile(tempPath + QString("/bauhaus-logger-%1-XXXXXX.txt").arg(QDateTime::currentDateTime().toString(Qt::ISODate).replace(":", "-")), this);
QString tempFileName = tempPath + QString("/bauhaus-logger-%1-XXXXXX.txt").arg(QDateTime::currentDateTime().toString(Qt::ISODate).replace(':', '-'));
if (temporaryFile->open()) {
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