From c8848e1ef55de27cfb01885ff7a70787c547964c Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Mon, 16 Dec 2019 15:42:16 +0100 Subject: [PATCH] Remove listener before setting a new one This fixes update issues reported in #3731. --- .../java/bisq/desktop/main/support/dispute/DisputeView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/src/main/java/bisq/desktop/main/support/dispute/DisputeView.java b/desktop/src/main/java/bisq/desktop/main/support/dispute/DisputeView.java index 4aa53c620cd..88bafcd3cb2 100644 --- a/desktop/src/main/java/bisq/desktop/main/support/dispute/DisputeView.java +++ b/desktop/src/main/java/bisq/desktop/main/support/dispute/DisputeView.java @@ -892,6 +892,10 @@ public TableCell call(TableColumn column) { public void updateItem(final Dispute item, boolean empty) { super.updateItem(item, empty); if (item != null && !empty) { + if (closedProperty != null) { + closedProperty.removeListener(listener); + } + listener = (observable, oldValue, newValue) -> { setText(newValue ? Res.get("support.closed") : Res.get("support.open")); if (getTableRow() != null)