From 2d728f781b55fb1dc63fb10e9f570cdb4902b1cd Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 17 Jan 2013 14:38:57 -0600 Subject: Fix taskbar config reload global settings button --- kcontrol/taskbar/kcmtaskbar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kcontrol/taskbar') diff --git a/kcontrol/taskbar/kcmtaskbar.cpp b/kcontrol/taskbar/kcmtaskbar.cpp index 00e0cd1f3..d21f39df2 100644 --- a/kcontrol/taskbar/kcmtaskbar.cpp +++ b/kcontrol/taskbar/kcmtaskbar.cpp @@ -262,7 +262,9 @@ TaskbarConfig::~TaskbarConfig() void TaskbarConfig::slotReloadConfigurationFromGlobals() { KConfig globalConfig(GLOBAL_TASKBAR_CONFIG_FILE_NAME, TRUE, TRUE); - globalConfig.copyTo(m_configFileName); + KConfig localConfig(m_configFileName); + globalConfig.copyTo(m_configFileName, &localConfig); + localConfig.sync(); m_settingsObject->readConfig(); load(); } -- cgit v1.2.1