[qet] qet/qet: [5458] Disabling momentary for macOS bundle : |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5458
Author: scorpio810
Date: 2018-07-27 16:41:23 +0200 (Fri, 27 Jul 2018)
Log Message:
-----------
Disabling momentary for macOS bundle :
let user define the file system path of the common and custom elements
collections
Modified Paths:
--------------
trunk/sources/qetapp.cpp
Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp 2018-07-27 07:37:49 UTC (rev 5457)
+++ trunk/sources/qetapp.cpp 2018-07-27 14:41:23 UTC (rev 5458)
@@ -463,6 +463,7 @@
*/
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 @@
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::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 @@
return path;
}
}
-
+#endif
return(configDir() + "elements/");
}