diff options
author | Yana Stamcheva <yana@jitsi.org> | 2011-06-21 14:58:39 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2011-06-21 14:58:39 +0000 |
commit | 76cecff08d03207c38e32abd8ec81852d5521fb7 (patch) | |
tree | 9c96209ccee9b99fdc407cb2a0ee19227a603178 /src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java | |
parent | eaa0616e04740eb3a173147b8ac3edbe579c7edc (diff) | |
download | jitsi-76cecff08d03207c38e32abd8ec81852d5521fb7.zip jitsi-76cecff08d03207c38e32abd8ec81852d5521fb7.tar.gz jitsi-76cecff08d03207c38e32abd8ec81852d5521fb7.tar.bz2 |
Adds a configuration property allowing to enable/disable add/remove contact functionality from provisioning.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java index 3ddd610..4ad98dc 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/SourceContactRightButtonMenu.java @@ -79,8 +79,12 @@ public class SourceContactRightButtonMenu if (cDetail != null) add(initCallMenu()); - addContactComponent - = TreeContactList.createAddContactMenu(sourceContact); + // Only create the menu if the add contact functionality is enabled. + if (!ConfigurationManager.isAddContactDisabled()) + { + addContactComponent + = TreeContactList.createAddContactMenu(sourceContact); + } if (addContactComponent != null) add(addContactComponent); |