Hi,

On 14 Jun 2015, at 08:12, Joakim Bygdell <[email protected]> wrote:

With Qt 5.4.1 AppDataLocation gives the correct path.

in that case, the fix is simple:

From d47014986b7eb5264fe589d645bccd77e45d4dee Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
Date: Sun, 14 Jun 2015 08:28:57 +0200
Subject: [PATCH] Work around QStandardPaths::AppDataLocation broken in 5.4.0

As the path to be in the user's directory is being fixed in 5.4.1
this should solve the problem of subsurface not being able to
save its data on Mac.

Signed-off-by: Robert C. Helling <[email protected]>
---
 qthelper.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qthelper.cpp b/qthelper.cpp
index 5434bcd..65e64ab 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -355,7 +355,7 @@ extern "C" const char *system_default_directory(void)
 
        if (!*filename) {
                enum QStandardPaths::StandardLocation location;
-#if QT_VERSION >= 0x050400
+#if QT_VERSION >= 0x050401
                location = QStandardPaths::AppDataLocation;
 #else
                location = QStandardPaths::DataLocation;
-- 
1.9.5 (Apple Git-50.3)


Best
Robert

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to