From 1d5940a6a10a29c183eca84b1d15143197065f7a Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Fri, 27 Jul 2018 14:41:23 +0000 Subject: [PATCH] Disabling momentary for macOS bundle : let user define the file system path of the common and custom elements collections git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5458 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetapp.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index 3e2608969..c465b331a 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -463,6 +463,7 @@ QString QETApp::userName() { */ QString QETApp::commonElementsDir() { +#ifndef Q_OS_MAC QSettings settings; QString path = settings.value("elements-collections/common-collection-path", "default").toString(); if (path != "default" && !path.isEmpty()) @@ -472,7 +473,8 @@ QString QETApp::commonElementsDir() return path; } } - +#endif + #ifdef QET_ALLOW_OVERRIDE_CED_OPTION if (common_elements_dir != QString()) return(common_elements_dir); #endif @@ -496,6 +498,7 @@ QString QETApp::commonElementsDir() */ QString QETApp::customElementsDir() { +#ifndef Q_OS_MAC QSettings settings; QString path = settings.value("elements-collections/custom-collection-path", "default").toString(); if (path != "default" && !path.isEmpty()) @@ -505,7 +508,7 @@ QString QETApp::customElementsDir() return path; } } - +#endif return(configDir() + "elements/"); }