diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-02-24 16:05:55 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-02-24 16:05:55 +0000 |
commit | 113d444b67d76db9a758cb1c019f14d43e8a04ff (patch) | |
tree | 945cd6f54785b06b0f50c61543cea30feee8610a /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java | |
parent | 150692c525e83adc8357d7a40c4ccff6494c5aac (diff) | |
download | jitsi-113d444b67d76db9a758cb1c019f14d43e8a04ff.zip jitsi-113d444b67d76db9a758cb1c019f14d43e8a04ff.tar.gz jitsi-113d444b67d76db9a758cb1c019f14d43e8a04ff.tar.bz2 |
Fixes broken drag-n-drop in a call window reported by Emil Ivov.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java index cf7af8f..82e56b2 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java @@ -339,8 +339,9 @@ public class ContactListTransferHandler } else if (DataFlavor.stringFlavor.equals(flavor)) { - if (transferredObject instanceof MetaContact) - return ((MetaContact) transferredObject).getDisplayName(); + if (transferredObject instanceof ContactNode) + return ((ContactNode) transferredObject) + .getMetaContact().getDisplayName(); } else throw new UnsupportedFlavorException(flavor); |