diff --git a/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java b/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java index 56ed37b4c..147e03357 100755 --- a/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java +++ b/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java @@ -291,10 +291,10 @@ public void closeOperation(MouseEvent e){ .getDefaultContact().getPresenceStatus(); //Add the first two tabs to the tabbed pane. chatTabbedPane.addTab - (currentChatPanel.getDefaultContact().getDisplayName(), + (firstChatPanel.getDefaultContact().getDisplayName(), new ImageIcon(Constants.getStatusIcon (currentContactStatus)), - currentChatPanel); + firstChatPanel); chatPanel = new ChatPanel(this, contactIMOperationSet); @@ -308,7 +308,7 @@ public void closeOperation(MouseEvent e){ .setTabIndex(chatTabbedPane.getTabCount() - 1); this.contactTabsTable.put(contact.getMetaUID(), - currentChatPanel); + chatPanel); } this.getContentPane().add(chatTabbedPane, BorderLayout.CENTER);