diff --git a/src/elogd.c b/src/elogd.c index 4f762261..9c2bcc4b 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -11522,10 +11522,11 @@ void show_find_form(LOGBOOK * lbs) sprintf(str, "Icon comment %s", option); getcfg(lbs->name, str, comment, sizeof(comment)); - rsprintf("", attr_list[i], option); - if (comment[0] == 0) strcpy(comment, option); + + rsprintf("", attr_list[i], comment); + rsprintf("\"%s\"\n", option, comment, comment); } } @@ -19153,6 +19154,13 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa /* apply filter for attributes */ for (i = 0; i < lbs->n_attr; i++) { + /* replace icon name with their comments if present */ + if (attr_flags[i] & AF_ICON) { + sprintf(str, "Icon comment %s", attrib[i]); + if (getcfg(lbs->name, str, comment, sizeof(comment))) + strlcpy(attrib[i], comment, NAME_LENGTH); + } + /* check for multi attributes */ if (attr_flags[i] & AF_MULTI) {