aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/kconfig.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp
index 14a5d39c..c6dec436 100644
--- a/src/core/kconfig.cpp
+++ b/src/core/kconfig.cpp
@@ -64,10 +64,10 @@ KConfigPrivate::KConfigPrivate(KConfig::OpenFlags flags,
sGlobalFileName = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/kdeglobals");
static QBasicAtomicInt use_etc_kderc = Q_BASIC_ATOMIC_INITIALIZER(-1);
- if (use_etc_kderc < 0) {
- use_etc_kderc = !qEnvironmentVariableIsSet("KDE_SKIP_KDERC"); // for unit tests
+ if (use_etc_kderc.load() < 0) {
+ use_etc_kderc.store( !qEnvironmentVariableIsSet("KDE_SKIP_KDERC")); // for unit tests
}
- if (use_etc_kderc) {
+ if (use_etc_kderc.load()) {
etc_kderc =
#ifdef Q_OS_WIN