diff --git a/pkgs/gui-pkgs/gui-lib/mred/private/wx/gtk/list-box.rkt b/pkgs/gui-pkgs/gui-lib/mred/private/wx/gtk/list-box.rkt index daf2179b18..2b0f1043b9 100644 --- a/pkgs/gui-pkgs/gui-lib/mred/private/wx/gtk/list-box.rkt +++ b/pkgs/gui-pkgs/gui-lib/mred/private/wx/gtk/list-box.rkt @@ -137,9 +137,12 @@ (maybe-init-select)) (define/private (maybe-init-select) - (when (and (= (get-selection) -1) - (pair? data)) - (set-selection 0))) + ;; For consistency with other platforms, + ;; don't try to select an item initially. + (when #f + (when (and (= (get-selection) -1) + (pair? data)) + (set-selection 0)))) (define gtk (as-gtk-allocation (gtk_scrolled_window_new #f #f))) (gtk_scrolled_window_set_policy gtk GTK_POLICY_AUTOMATIC GTK_POLICY_ALWAYS)