# HG changeset patch # User Olaf Wintermann # Date 1780766301 -7200 # Node ID 2889dd61cfb36c7d0ea7986eb65ec74c7c3209f2 # Parent e5e5c177929478320c0fd95af871de935a87c475 clear tableview selection when doing a full reload diff -r e5e5c1779294 -r 2889dd61cfb3 ui/cocoa/list.m --- a/ui/cocoa/list.m Sat Jun 06 18:47:45 2026 +0200 +++ b/ui/cocoa/list.m Sat Jun 06 19:18:21 2026 +0200 @@ -215,6 +215,7 @@ void ui_tableview_update(UiList *list, int i) { NSTableView *tableview = (__bridge NSTableView*)list->obj; if(i < 0) { + [tableview deselectAll: tableview]; [tableview reloadData]; } else { [tableview reloadData]; // TODO: optimize