mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1235, hopefully refixed this
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12507 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
4a51cdfd56
commit
dda4a7b2f2
@ -376,7 +376,7 @@ public class UserManager {
|
||||
|
||||
|
||||
public void searchContacts(String contact, final JFrame parent) {
|
||||
if (parents.get(parent) == null) {
|
||||
if (parents.get(parent) == null && parent.getGlassPane() !=null) {
|
||||
parents.put(parent, parent.getGlassPane());
|
||||
}
|
||||
|
||||
@ -390,6 +390,7 @@ public class UserManager {
|
||||
final ContactList contactList = SparkManager.getWorkspace().getContactList();
|
||||
|
||||
for (ContactGroup contactGroup : contactList.getContactGroups()) {
|
||||
contactGroup.clearSelection();
|
||||
for (ContactItem contactItem : contactGroup.getContactItems()) {
|
||||
if (!contactMap.containsKey(contactItem.getJID())) {
|
||||
contacts.add(contactItem);
|
||||
|
||||
@ -1964,7 +1964,7 @@ public final class ContactList extends JPanel implements ActionListener,
|
||||
if (contactGroup == null) {
|
||||
contactGroup = addContactGroup(groupName);
|
||||
contactGroup.setVisible(true);
|
||||
validateTree();
|
||||
//validateTree();
|
||||
repaint();
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,24 +69,31 @@ public class PresenceChangePlugin implements Plugin {
|
||||
private static final long serialVersionUID = 7705539667621148816L;
|
||||
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
ContactItem item = contactList.getSelectedUsers().iterator().next();
|
||||
String bareAddress = StringUtils.parseBareAddress(item.getJID());
|
||||
sparkContacts.add(bareAddress);
|
||||
|
||||
for (ContactItem item : contactList.getSelectedUsers()) {
|
||||
String bareAddress = StringUtils.parseBareAddress(item
|
||||
.getJID());
|
||||
sparkContacts.add(bareAddress);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
listenAction.putValue(Action.NAME, Res.getString("menuitem.alert.when.online"));
|
||||
listenAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.SMALL_ALARM_CLOCK));
|
||||
|
||||
final Action removeAction = new AbstractAction() {
|
||||
final Action removeAction = new AbstractAction() {
|
||||
private static final long serialVersionUID = -8726129089417116105L;
|
||||
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
ContactItem item = contactList.getSelectedUsers().iterator().next();
|
||||
String bareAddress = StringUtils.parseBareAddress(item.getJID());
|
||||
sparkContacts.remove(bareAddress);
|
||||
}
|
||||
};
|
||||
|
||||
for (ContactItem item : contactList.getSelectedUsers()) {
|
||||
String bareAddress = StringUtils.parseBareAddress(item
|
||||
.getJID());
|
||||
sparkContacts.remove(bareAddress);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
removeAction.putValue(Action.NAME, Res.getString("menuitem.remove.alert.when.online"));
|
||||
removeAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.SMALL_DELETE));
|
||||
|
||||
Reference in New Issue
Block a user