From 1256c80f12d7a7f9d06c179c0318761022da22a4 Mon Sep 17 00:00:00 2001 From: xyzmaker123 Date: Thu, 10 Jun 2021 19:56:41 +0200 Subject: [PATCH] Wrong information popup is shown when you click on own offer in offer book --- .../bisq/desktop/main/offer/offerbook/OfferBookView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java b/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java index 14c78bf5b91..94044acf383 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java @@ -1045,7 +1045,10 @@ public void updateItem(final OfferBookListItem item, boolean empty) { canTakeOfferResult = model.offerFilter.canTakeOffer(offer, false); tableRow.setOpacity(canTakeOfferResult.isValid() || myOffer ? 1 : 0.4); - if (canTakeOfferResult.isValid()) { + if (myOffer) { + button.setDefaultButton(false); + tableRow.setOnMousePressed(null); + } else if (canTakeOfferResult.isValid()) { // set first row button as default button.setDefaultButton(getIndex() == 0); tableRow.setOnMousePressed(null);