Merge pull request #69 from level7systems/chat-window-fix

Fixes all chat windows being closed when clicking the window close button.
deb-src-release-2.8.5426 5421
Ingo Bauersachs 11 years ago
commit 4d2687b67b

@ -744,9 +744,23 @@ else if ((menuBar.getSelectedMenu() != null)
}
}
else
{
GuiActivator
.getUIService().getChatWindowManager().closeAllChats(this, true);
{
if(ConfigurationUtils.isMultiChatWindowEnabled())
{
GuiActivator
.getUIService().getChatWindowManager().closeAllChats(this, true);
}
else
{
ChatPanel chatPanel = getCurrentChat();
if(chatPanel == null
|| chatPanel.getChatConversationPanel() == null)
return;
GuiActivator
.getUIService().getChatWindowManager().closeChat(chatPanel);
}
}
}

Loading…
Cancel
Save