From f1e5d65ec12884c7e0f08b3bbec7b327fa116b03 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 17 Nov 2017 17:47:29 +0100 Subject: 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 --- src/core/kconfig.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/kconfig.cpp') 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(); } } -- cgit v1.2.1