# HG changeset patch # User Olaf Wintermann # Date 1744224567 -7200 # Node ID dc5ed4c10d836750c15fe504d611167d4c54528b # Parent 62aefa91ffc54c00d62a7729fbef739fe13d1f58 fix radio buttons (QT) diff -r 62aefa91ffc5 -r dc5ed4c10d83 application/main.c --- a/application/main.c Sun Apr 06 14:11:43 2025 +0200 +++ b/application/main.c Wed Apr 09 20:49:27 2025 +0200 @@ -37,7 +37,7 @@ #include "cx/string.h" #include "cx/list.h" -#define UI_TEST +//define UI_TEST #ifdef UI_TEST diff -r 62aefa91ffc5 -r dc5ed4c10d83 ui/qt/button.cpp --- a/ui/qt/button.cpp Sun Apr 06 14:11:43 2025 +0200 +++ b/ui/qt/button.cpp Wed Apr 09 20:49:27 2025 +0200 @@ -167,9 +167,9 @@ static void radiobutton_event(UiEvent *event, UiEventWrapper *wrapper) { if(wrapper->var) { - UiInteger *value = wrapper->var->value; + UiInteger *value = (UiInteger*)wrapper->var->value; event->eventdata = value; - event->intval = ui_get(value); + event->intval = value->get(value); } }