From 46071bf60d93e062d02b6dc3ec27a1cefba5397b Mon Sep 17 00:00:00 2001 From: Symphorien Wanko Date: Wed, 25 Feb 2009 12:01:22 +0000 Subject: [PATCH] small modification to fix the join chat room wizard --- .../impl/gui/customcontrols/LabelTableCellRenderer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/impl/gui/customcontrols/LabelTableCellRenderer.java b/src/net/java/sip/communicator/impl/gui/customcontrols/LabelTableCellRenderer.java index fa025400e..411049929 100644 --- a/src/net/java/sip/communicator/impl/gui/customcontrols/LabelTableCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/customcontrols/LabelTableCellRenderer.java @@ -10,6 +10,7 @@ import javax.swing.*; import javax.swing.table.*; +import net.java.sip.communicator.impl.gui.main.chat.conference.*; import net.java.sip.communicator.impl.gui.utils.*; import net.java.sip.communicator.service.contactlist.*; import net.java.sip.communicator.service.protocol.*; @@ -52,7 +53,11 @@ else if (value instanceof MetaContactGroup) { MetaContactGroup group = (MetaContactGroup) value; this.setText(group.getGroupName()); } - else { + else if (value instanceof ChatRoomProviderWrapper) { + ChatRoomProviderWrapper provider = (ChatRoomProviderWrapper) value; + this.setText( + provider.getProtocolProvider().getAccountID().getDisplayName()); + } else { this.setText(value.toString()); }