Adds add contact button only for source contacts.

cusax-fix
Damian Minkov 13 years ago
parent 249aff6c22
commit 1944db2399

@ -870,7 +870,8 @@ private void initButtonsPanel(UIContact uiContact)
// enable add contact button if contact source has indicated
// that this is possible
if (uiContact.getDefaultContactDetail(
if (uiContact.getDescriptor() instanceof SourceContact
&& uiContact.getDefaultContactDetail(
OperationSetPersistentPresence.class) != null
&& GuiActivator.getOpSetRegisteredProviders(
OperationSetPersistentPresence.class,

Loading…
Cancel
Save