Fix checkbox's child creation
* lisp/wid-edit.el (widget-checklist-add-item): Swap function calls so that child is actually a widget. (Bug#72156)
This commit is contained in:
committed by
Eli Zaretskii
parent
26c5fadf47
commit
d66b8d4bec
@@ -2550,12 +2550,9 @@ If the item is checked, CHOSEN is a cons whose cdr is the value."
|
||||
(widget-create-child-value
|
||||
widget type (cdr chosen)))
|
||||
(t
|
||||
(widget-create-child-value
|
||||
widget type (car (cdr chosen)))
|
||||
;; This somehow breaks :options and other
|
||||
;; Custom features.
|
||||
;; (widget-specify-selected child)
|
||||
))))
|
||||
(widget-specify-selected child)
|
||||
(widget-create-child-value
|
||||
widget type (car (cdr chosen)))))))
|
||||
(t
|
||||
(error "Unknown escape `%c'" escape)))))
|
||||
;; Update properties.
|
||||
|
||||
Reference in New Issue
Block a user