Skip to content

Commit

Permalink
Use TextUtil.tooltip to escape ampersands in security/account-names
Browse files Browse the repository at this point in the history
Issue: #4030
  • Loading branch information
kimmerin authored and buchen committed May 25, 2024
1 parent 7041a96 commit 2df1225
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ protected Composite createItem(Composite parent, TransactionPair<AccountTransact
getClient().getSettings()));

Label name = new Label(composite, SWT.NONE);
name.setText(security != null ? security.getName() : account.getName());
name.setText(TextUtil.tooltip(security != null ? security.getName() : account.getName()));
name.addListener(SWT.MouseUp, event -> view.setInformationPaneInput(pair.getTransaction().getSecurity()));

Label earning = new Label(composite, SWT.RIGHT);
Expand Down

0 comments on commit 2df1225

Please sign in to comment.