diff src/debug.cpp @ 689:af295de6a59b

Ensure debug log is always created, in %AppData%
author Chris Cannam
date Mon, 10 Dec 2018 10:28:15 +0000
parents f9b805d8cab4
children 067252b1e732
line wrap: on
line diff
--- a/src/debug.cpp	Sun Dec 09 16:46:44 2018 +0000
+++ b/src/debug.cpp	Mon Dec 10 10:28:15 2018 +0000
@@ -42,7 +42,7 @@
         sprintf(prefix, "[%lu]", (unsigned long)QCoreApplication::applicationPid());
         QString logFileName = QDir::homePath() + "/.easyhg.log"; // the fallback
         QString logDir = QStandardPaths::writableLocation
-            (QStandardPaths::DataLocation);
+            (QStandardPaths::AppDataLocation);
         if (logDir != "" &&
             (QDir(logDir).exists() ||
              QDir().mkpath(logDir))) {