aboutsummaryrefslogtreecommitdiff
path: root/contactWind.c
diff options
context:
space:
mode:
Diffstat (limited to 'contactWind.c')
-rw-r--r--contactWind.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contactWind.c b/contactWind.c
index e496e8a..c0baa26 100644
--- a/contactWind.c
+++ b/contactWind.c
@@ -13,6 +13,8 @@ int w_menuContact,h_menuContact;
int contactListSelection;
int firstConctactShow;
+int showName = 1;
+
contact* getContactSelected(void) {
return contactListSelection+contactList;
@@ -80,7 +82,10 @@ void showContactListW(void) {
attrset( COLOR_PAIR(color) | attr);
move(y,x);
printw("%*s", w, " ");
- mvprintc(x,y++,contactList[i].display_name, w);
+ if( showName )
+ mvprintc(x,y++,contactList[i].display_name, w);
+ else
+ mvprintc(x,y++,contactList[i].number, w);
attrset(0 | A_NORMAL);
}
for( ; i < s ; i++){ // Clear