aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/eab-popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/eab-popup.c')
-rw-r--r--addressbook/gui/widgets/eab-popup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/eab-popup.c b/addressbook/gui/widgets/eab-popup.c
index 8a292b745f..4a745a41f2 100644
--- a/addressbook/gui/widgets/eab-popup.c
+++ b/addressbook/gui/widgets/eab-popup.c
@@ -155,6 +155,13 @@ eab_popup_target_new_select(EABPopup *eabp, struct _EBook *book, int readonly, G
}
}
+ if (cards->len == 1) {
+ if (e_contact_get (E_CONTACT(cards->pdata[0]), E_CONTACT_IS_LIST))
+ mask &= ~EAB_POPUP_LIST;
+ else
+ mask &= ~EAB_POPUP_CONTACT;
+ }
+
if (has_email)
mask &= ~EAB_POPUP_SELECT_EMAIL;