[PATCH] Never delete entries.

David Reveman davidr at novell.com
Sun Aug 12 17:56:26 PDT 2007


---
 settings-backend/kconfig_backend.cpp |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/settings-backend/kconfig_backend.cpp b/settings-backend/kconfig_backend.cpp
index 58038d0..a68e270 100644
--- a/settings-backend/kconfig_backend.cpp
+++ b/settings-backend/kconfig_backend.cpp
@@ -1007,32 +1007,6 @@ writeSetting (CCSContext *c,
 	return;
     }
 
-    if (setting->isDefault)
-    {
-	if (cfg->hasKey (key) )
-	    cfg->deleteEntry (key);
-
-	if (setting->type == TypeAction)
-	{
-	    if (cfg->hasKey (key + "_key") )
-		cfg->deleteEntry (key + "_key");
-
-	    if (cfg->hasKey (key + "_button") )
-		cfg->deleteEntry (key + "_button");
-
-	    if (cfg->hasKey (key + "_edge") )
-		cfg->deleteEntry (key + "_edge");
-
-	    if (cfg->hasKey (key + "_edgeButton") )
-		cfg->deleteEntry (key + "_edgeButton");
-
-	    if (cfg->hasKey (key + "_bell") )
-		cfg->deleteEntry (key + "_bell");
-	}
-
-	return;
-    }
-
     switch (setting->type)
     {
 
-- 
1.5.2.4


--=-JKJEo0QaMHFoQml1BvGW
Content-Disposition: attachment; filename=0007-Use-default-item-separator-for-lists.patch
Content-Type: application/mbox; name=0007-Use-default-item-separator-for-lists.patch
Content-Transfer-Encoding: 7bit



More information about the compiz mailing list