Fixes the issue with the Close button from the File menu in chat window that quits jitsi.

cusax-fix 4879
hristoterezov 13 years ago
parent 6adab2c1a7
commit b16865d79f

@ -15,6 +15,7 @@
import net.java.sip.communicator.impl.gui.main.chat.history.*;
import net.java.sip.communicator.impl.gui.main.chatroomslist.*;
import net.java.sip.communicator.impl.gui.utils.*;
import net.java.sip.communicator.util.Logger;
import net.java.sip.communicator.util.skin.*;
/**
@ -79,10 +80,17 @@ public ChatFileMenu(ChatWindow chatWindow)
@Override
public void actionPerformed(ActionEvent e)
{
super.actionPerformed(e);
JMenuItem menuItem = (JMenuItem) e.getSource();
String itemText = menuItem.getName();
if (itemText.equalsIgnoreCase("close"))
{
this.chatWindow.setVisible(false);
this.chatWindow.dispose();
return;
}
super.actionPerformed(e);
if (itemText.equalsIgnoreCase("myChatRooms"))
{
@ -120,11 +128,6 @@ else if (itemText.equals("history"))
chatSession.getDescriptor(), history);
}
}
else if (itemText.equalsIgnoreCase("close"))
{
this.chatWindow.setVisible(false);
this.chatWindow.dispose();
}
}
/**

Loading…
Cancel
Save