Mercurial > hg > easyhg
diff src/debug.cpp @ 663:f9b805d8cab4 qt5
build with qt5 (in branch currently)
author | Chris Cannam |
---|---|
date | Thu, 14 Mar 2013 16:43:30 +0000 |
parents | ae67ea0af696 |
children | af295de6a59b |
line wrap: on
line diff
--- a/src/debug.cpp Fri Mar 01 09:20:11 2013 +0000 +++ b/src/debug.cpp Thu Mar 14 16:43:30 2013 +0000 @@ -25,7 +25,7 @@ #include <QDir> #include <QCoreApplication> #include <QDateTime> -#include <QDesktopServices> +#include <QStandardPaths> #include <cstdio> @@ -41,8 +41,8 @@ prefix = new char[20]; sprintf(prefix, "[%lu]", (unsigned long)QCoreApplication::applicationPid()); QString logFileName = QDir::homePath() + "/.easyhg.log"; // the fallback - QString logDir = QDesktopServices::storageLocation - (QDesktopServices::DataLocation); + QString logDir = QStandardPaths::writableLocation + (QStandardPaths::DataLocation); if (logDir != "" && (QDir(logDir).exists() || QDir().mkpath(logDir))) {