From 81a494b131bf72bccb8ff520c28523460a9397ef Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 11 Dec 2014 01:57:10 +0100 Subject: [PATCH] Use a shared config in tooltip Change-Id: I68521f9066114a265c3f3444332e5e67016207f7 --- src/declarativeimports/core/tooltip.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/declarativeimports/core/tooltip.cpp b/src/declarativeimports/core/tooltip.cpp index 839b8b72b..dc0b45726 100644 --- a/src/declarativeimports/core/tooltip.cpp +++ b/src/declarativeimports/core/tooltip.cpp @@ -71,10 +71,8 @@ ToolTip::~ToolTip() void ToolTip::settingsChanged() { - KConfig config("plasmarc"); - KConfigGroup cg(&config, "PlasmaToolTips"); - - m_interval = cg.readEntry("Delay", 700); + KConfigGroup cfg = KConfigGroup(KSharedConfig::openConfig("plasmarc"), "PlasmaToolTips"); + m_interval = cfg.readEntry("Delay", 700); m_tooltipsEnabledGlobally = (m_interval > 0); }