summaryrefslogtreecommitdiffstats
path: root/ColumnsPanel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ColumnsPanel.c')
-rw-r--r--ColumnsPanel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ColumnsPanel.c b/ColumnsPanel.c
index 02b3d386..45b4de00 100644
--- a/ColumnsPanel.c
+++ b/ColumnsPanel.c
@@ -129,7 +129,9 @@ ColumnsPanel* ColumnsPanel_new(Settings* settings) {
ProcessField* fields = this->settings->fields;
for (; *fields; fields++) {
- Panel_add(super, (Object*) ListItem_new(Process_fields[*fields].name, *fields));
+ if (Process_fields[*fields].name) {
+ Panel_add(super, (Object*) ListItem_new(Process_fields[*fields].name, *fields));
+ }
}
return this;
}