# HG changeset patch # User Olaf Wintermann # Date 1787334801 -7200 # Node ID d3b850797029a0759c2fa347f94358d7d99d05f1 # Parent cd25e7f5aeb8c61c036bef7002f9a7c8f1fea62e don't call activation callbacks when there is no list selection (QT) diff -r cd25e7f5aeb8 -r d3b850797029 application/main.c --- a/application/main.c Tue Aug 18 20:48:31 2026 +0200 +++ b/application/main.c Fri Aug 21 19:53:21 2026 +0200 @@ -1203,7 +1203,7 @@ static void list_activate(UiEvent *event, void *userdata) { UiListSelection *sel = event->eventdata; - printf("selection [%d]\n", sel->rows[0]); + printf("activate: selection [%d]\n", sel->rows[0]); } void* table_getvalue(void *elm, int col) { diff -r cd25e7f5aeb8 -r d3b850797029 ui/qt/model.cpp --- a/ui/qt/model.cpp Tue Aug 18 20:48:31 2026 +0200 +++ b/ui/qt/model.cpp Fri Aug 21 19:53:21 2026 +0200 @@ -235,7 +235,7 @@ event.intval = sel.count; event.set = ui_get_setop(); - if(onactivate) { + if(sel.count > 0 && onactivate) { onactivate(&event, onactivatedata); } if(onselection) {