@ -823,11 +823,13 @@ private void addContact(final ContactQuery query,
{
public void run ( )
{
// If in the meantime the corresponding query was canceled
// we don't proceed with adding .
// If in the meantime the filter has changed we don't
// add the contact .
if ( query ! = null
& & query . getStatus ( ) ! = ContactQuery . QUERY_CANCELED )
& & currentFilterQuery . containsQuery ( query ) )
{
addContact ( contact , group , isSorted ) ;
}
}
} ) ;
return ;
@ -1365,16 +1367,12 @@ public void mousePressed(MouseEvent e)
if ( ! ( lastComponent instanceof TreeNode ) )
return ;
// Open message window, right button menu when mouse is pressed.
// Open right button menu when right mouse is pressed.
if ( lastComponent instanceof ContactNode )
{
UIContact uiContact
= ( ( ContactNode ) lastComponent ) . getContactDescriptor ( ) ;
fireContactListEvent (
uiContact ,
ContactListEvent . CONTACT_CLICKED , e . getClickCount ( ) ) ;
if ( ( e . getModifiers ( ) & InputEvent . BUTTON3_MASK ) ! = 0
| | ( e . isControlDown ( ) & & ! e . isMetaDown ( ) ) )
{
@ -1388,10 +1386,6 @@ else if (lastComponent instanceof GroupNode)
UIGroup uiGroup
= ( ( GroupNode ) lastComponent ) . getGroupDescriptor ( ) ;
fireContactListEvent (
uiGroup ,
ContactListEvent . GROUP_CLICKED , e . getClickCount ( ) ) ;
if ( ( e . getModifiers ( ) & InputEvent . BUTTON3_MASK ) ! = 0
| | ( e . isControlDown ( ) & & ! e . isMetaDown ( ) ) )
{