diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-10-21 10:33:39 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-10-21 10:33:39 +0000 |
commit | df596654843456c9b06f63b12970e7d25ca8c212 (patch) | |
tree | cc4743e5f347c4377f928695c3335e174c542d3c /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTransferHandler.java | |
parent | c86a1d94e324f5432fd14a655b7801b86906c39b (diff) | |
download | jitsi-df596654843456c9b06f63b12970e7d25ca8c212.zip jitsi-df596654843456c9b06f63b12970e7d25ca8c212.tar.gz jitsi-df596654843456c9b06f63b12970e7d25ca8c212.tar.bz2 |
Fix for F2 key not working in contact list. F2 now properly opens the rename dialog when a contact or group has been selected.
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 | 6 |
1 files changed, 2 insertions, 4 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 5e4bf6c..b775c4c 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 @@ -187,8 +187,7 @@ public class ContactListTransferHandler TreeContactList list = (TreeContactList) comp; - Object dest - = list.getSelectionPath().getLastPathComponent(); + Object dest = list.getSelectedValue(); if (transferredContact != null) { @@ -288,8 +287,7 @@ public class ContactListTransferHandler private ChatPanel getChatPanel() { ChatPanel chatPanel = null; - Object selectedObject - = contactList.getSelectionPath().getLastPathComponent(); + Object selectedObject = contactList.getSelectedValue(); if (selectedObject instanceof MetaContact) { |