From 83684deb5e0982474c26c74de87c779914926104 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 14 Dec 2004 02:40:56 +0000 Subject: [PATCH] Fire a property change event when we remove a configuration value. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1546 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- projects/samskivert/src/java/com/samskivert/util/Config.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/samskivert/src/java/com/samskivert/util/Config.java b/projects/samskivert/src/java/com/samskivert/util/Config.java index 191f22d7..ecb67ec3 100644 --- a/projects/samskivert/src/java/com/samskivert/util/Config.java +++ b/projects/samskivert/src/java/com/samskivert/util/Config.java @@ -576,7 +576,10 @@ public class Config */ public void remove (String name) { + // we treat the old value as a String, I hope that's ok! + String oldValue = getValue(name, (String) null); _prefs.remove(name); + _propsup.firePropertyChange(name, oldValue, null); } /**