fixed a bug found by the random testing from randomly-click-language-dialog.ss

svn: r17897

original commit: 30c5d37b81cdd70f517eab7392896e8afffad6e6
This commit is contained in:
Robby Findler 2010-01-30 20:50:18 +00:00
parent 88384ffeb0
commit d70673cdc6

View File

@ -205,7 +205,8 @@
(λ (window)
(let ([frame (get-active-frame)])
(let loop ([window window])
(cond [(null? window) #f]
(cond [(not window) #f]
[(null? window) #f] ;; is this test needed?
[(eq? window frame) #t]
[else (loop (send window get-parent))])))))