diff options
author | Aleix Pol <aleixpol@kde.org> | 2017-11-17 17:47:29 +0100 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2017-11-20 13:09:57 +0100 |
commit | f1e5d65ec12884c7e0f08b3bbec7b327fa116b03 (patch) | |
tree | 81ed0d5d1747240a034e79c98effa3454a755a2b | |
parent | 20b650094371d1ab280377cb53975810cf8c8923 (diff) | |
download | kconfig-f1e5d65ec12884c7e0f08b3bbec7b327fa116b03.tar.gz kconfig-f1e5d65ec12884c7e0f08b3bbec7b327fa116b03.tar.bz2 |
Don't look for /etc/kderc every single time
Summary:
Every time we open a configuration file, we are checking if this file is there.
Since it's a sysadmin setting I'd say it's fine to assume that it's not appearing
and disappearing.
Also we are not supporting the case of the file changing during runtime or so.
Reviewers: #frameworks, mpyne, dfaure
Reviewed By: mpyne, dfaure
Subscribers: dfaure, mpyne
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D8871
-rw-r--r-- | src/core/kconfig.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index aced218d..f0166f2e 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -86,6 +86,7 @@ KConfigPrivate::KConfigPrivate(KConfig::OpenFlags flags, QStringLiteral("/etc/kde5rc"); #endif if (!QFileInfo(etc_kderc).isReadable()) { + use_etc_kderc.store(false); etc_kderc.clear(); } } |