From bfd86a60cc1e9edd94c219e6e2018e00a672b7ff Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 1 Dec 2011 12:31:57 +0000 Subject: Keep panel structure up-to-date as process list changes when headers are updated during the screen manager. Hopefully closes #3444533. --- ColorsPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ColorsPanel.c') diff --git a/ColorsPanel.c b/ColorsPanel.c index 5e58670c..b4ee5f29 100644 --- a/ColorsPanel.c +++ b/ColorsPanel.c @@ -67,7 +67,7 @@ static HandlerResult ColorsPanel_EventHandler(Panel* super, int ch) { this->settings->changed = true; Header* header = this->settings->header; CRT_setColors(mark); - Panel* menu = (Panel*) Vector_get(this->scr->items, 0); + Panel* menu = (Panel*) Vector_get(this->scr->panels, 0); Header_draw(header); RichString_setAttr(&(super->header), CRT_colors[PANEL_HEADER_FOCUS]); RichString_setAttr(&(menu->header), CRT_colors[PANEL_HEADER_UNFOCUS]); -- cgit v1.2.3