Not able to move or copy contacts when Rename contact is
disabled
@@ -128,6 +128,7 @@ public class ContactListAssistantPlugin implements Plugin {
});
int index = -1;
+ if (!Default.getBoolean("DISABLE_RENAMES") && Enterprise.containsFeature(Enterprise.RENAMES_FEATURE)) {
for (int i = 0; i < popup.getComponentCount(); i++) {
Object o = popup.getComponent(i);
if (o instanceof JMenuItem && ((JMenuItem)o).getText().equals(Res.getString("menuitem.rename"))) {
@@ -135,8 +136,11 @@ public class ContactListAssistantPlugin implements Plugin {
break;
}
}
+
+ } else index = 3;
+
if (contactItems.size() == 1) {
- // Add right after the rename item.
+ // Add MOVE/COPY options right after the RENAME option or in it's place if it doesn't exist.
if (index != -1) {
// See if we should disable the "Move to" and "Copy to" menu options
if (!Default.getBoolean("DISABLE_MOVE_AND_COPY") && Enterprise.containsFeature(Enterprise.MOVE_COPY_FEATURE)) {
