From 8dd488029952f709beec3d73aeeb9308538428be Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 9 Jun 2022 07:59:39 +0100 Subject: [PATCH] trim() the contents of the contact chooser at the end --- .../main/groovy/com/muwire/gui/contacts/ContactChooser.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/main/groovy/com/muwire/gui/contacts/ContactChooser.groovy b/gui/src/main/groovy/com/muwire/gui/contacts/ContactChooser.groovy index 8c3bdfab..71c29aae 100644 --- a/gui/src/main/groovy/com/muwire/gui/contacts/ContactChooser.groovy +++ b/gui/src/main/groovy/com/muwire/gui/contacts/ContactChooser.groovy @@ -28,7 +28,7 @@ class ContactChooser extends JComboBox{ def lastPOP = chooserEditor.getItem() if (lastPOP == null) return rv - lastPOP = chooserModel.findByName(lastPOP.toString()) + lastPOP = chooserModel.findByName(lastPOP.toString().trim()) if (lastPOP != null) rv << lastPOP rv