From ea91396ccf0012e05b6db8e49c153a42fa322577 Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 26 Jan 2020 12:53:06 +0100 Subject: [PATCH] Fixed checking if other party's name is set --- .../banking/ui/javafx/controls/AccountTransactionsView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsView.kt b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsView.kt index 8db51e14..8a2c2fc2 100644 --- a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsView.kt +++ b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsView.kt @@ -82,7 +82,7 @@ open class AccountTransactionsView(private val presenter: MainWindowPresenter) : val contextMenu = ContextMenu() contextMenu.apply { - if (selectedItem.bankAccount.supportsTransferringMoney && selectedItem.otherPartyName != null) { + if (selectedItem.bankAccount.supportsTransferringMoney && selectedItem.otherPartyName.isNullOrBlank() == false) { item(String.format(FX.messages["account.transactions.table.context.menu.transfer.money.to"], selectedItem.otherPartyName)) { action { showTransferMoneyDialog(selectedItem) } }