Only set the value if it's changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3706 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -103,7 +103,7 @@ public abstract class FieldEditor extends JPanel
|
||||
}
|
||||
|
||||
// submit an attribute changed event with the new value
|
||||
if (value != null) {
|
||||
if (!ObjectUtil.equals(value, getValue())) {
|
||||
try {
|
||||
_object.changeAttribute(_field.getName(), value);
|
||||
} catch (ObjectAccessException oae) {
|
||||
|
||||
Reference in New Issue
Block a user