clear tableview selection when doing a full reload

Sat, 06 Jun 2026 19:18:21 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 06 Jun 2026 19:18:21 +0200
changeset 1178
2889dd61cfb3
parent 1177
e5e5c1779294
child 1180
9f3b4129631f

clear tableview selection when doing a full reload

ui/cocoa/list.m file | annotate | diff | comparison | revisions
--- 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

mercurial