aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libgui/gui.c')
-rw-r--r--libs/libgui/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libgui/gui.c b/libs/libgui/gui.c
index f768232..337fd81 100644
--- a/libs/libgui/gui.c
+++ b/libs/libgui/gui.c
@@ -70,7 +70,7 @@ static struct gui_widget *gui_widget_in_widget(struct gui_widget *parent, u32 wi
while (iterator) {
struct gui_widget *widget = iterator->data;
if (widget->id == widget_id)
- return iterator->data;
+ return widget;
struct gui_widget *sub = gui_widget_in_widget(widget, widget_id);
if (sub && sub->id == widget_id)