ui/common/context.c

changeset 1168
2f9d8af6a499
parent 1167
f0e901f7d1b7
child 1169
c69f2941d536
--- a/ui/common/context.c	Thu Jun 04 19:22:54 2026 +0200
+++ b/ui/common/context.c	Thu Jun 04 19:59:58 2026 +0200
@@ -466,6 +466,11 @@
             UiList *t = to;
             uic_list_copy(f, t);
             ui_list_update(t);
+            if(t->setselection && t->saved_selection) {
+                t->setselection(t, *t->saved_selection);
+            }
+            ui_list_selection_free(t->saved_selection);
+            t->saved_selection = NULL;
             break;
         }
         case UI_VAR_RANGE: {

mercurial