fixed a bug noticed by SamTH

svn: r9931
This commit is contained in:
Robby Findler 2008-05-22 21:48:12 +00:00
parent 3c20d5d638
commit 094cbcff19

View File

@ -3686,7 +3686,8 @@ module browser threading seems wrong.
(when lang (when lang
;; this test can fail when a language has been added wrongly via the tools interface ;; this test can fail when a language has been added wrongly via the tools interface
;; just ignore that menu item, in that case. ;; just ignore that menu item, in that case.
(let ([settings (send lang unmarshall-settings marshalled-settings)]) (let ([settings (or (send lang unmarshall-settings marshalled-settings)
(send lang default-settings))])
(when lang (when lang
(set! added-one? #t) (set! added-one? #t)
(new menu-item% (new menu-item%