aboutsummaryrefslogtreecommitdiff
path: root/contactWind.c
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-01-26 20:16:19 +0100
committerache <ache@ache.one>2018-01-26 20:16:19 +0100
commitee6a3dd6bc4a195e89c03e50318e6e167164025b (patch)
tree2762188ea92f9b73b2fe61a8e41cd51464f205a8 /contactWind.c
parentfix the display of the sms to send (diff)
Add an option to shown Number instead of name
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