diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 9843339dd4..662496d40d 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -72,14 +72,8 @@ void list_init_viewports(struct gui_synclist *list) | |||
72 | FOR_NB_SCREENS(i) | 72 | FOR_NB_SCREENS(i) |
73 | { | 73 | { |
74 | vp = &parent[i]; | 74 | vp = &parent[i]; |
75 | if (!list) | 75 | if (!list || list->parent[i] == vp) |
76 | viewport_set_defaults(vp, i); | 76 | viewport_set_defaults(vp, i); |
77 | else if (list->parent[i] == vp) | ||
78 | { | ||
79 | viewport_set_defaults(vp, i); | ||
80 | list->parent[i]->y = gui_statusbar_height(); | ||
81 | list->parent[i]->height = screens[i].lcdheight - list->parent[i]->y; | ||
82 | } | ||
83 | } | 77 | } |
84 | #ifdef HAVE_BUTTONBAR | 78 | #ifdef HAVE_BUTTONBAR |
85 | if (list && (list->parent[0] == &parent[0]) && global_settings.buttonbar) | 79 | if (list && (list->parent[0] == &parent[0]) && global_settings.buttonbar) |