added guard against passing #f to the make-button procedure
This commit is contained in:
parent
10c6213a8f
commit
d4c0aa1daf
|
@ -134,10 +134,11 @@
|
|||
(info-result 'drscheme:opt-out-toolbar-buttons '())))))))
|
||||
|
||||
(inherit get-tab)
|
||||
(define/private (register-new-buttons buttons opt-out-ids)
|
||||
|
||||
(define/private (register-new-buttons buttons opt-out-ids)
|
||||
(let* ([tab (get-tab)]
|
||||
[frame (send tab get-frame)])
|
||||
(when (send frame initialized?)
|
||||
(send frame begin-container-sequence)
|
||||
(let ([directly-specified-buttons
|
||||
(map (λ (button-spec)
|
||||
|
@ -167,7 +168,7 @@
|
|||
opt-out-buttons)
|
||||
string<=?
|
||||
#:key (λ (x) (send x get-label)))))
|
||||
(send frame end-container-sequence)))
|
||||
(send frame end-container-sequence))))
|
||||
|
||||
(inherit get-text)
|
||||
(define/private (get-lang-name pos)
|
||||
|
|
Loading…
Reference in New Issue
Block a user