make open dialogs on osx have no parent (unless the open-here? preference is set)

svn: r3334

original commit: bc017f488e504fe26f1f438b1a601f626f385e63
This commit is contained in:
Eli Barzilay 2006-06-11 20:47:43 +00:00
parent a955f7f97b
commit f94171a9c0

View File

@ -380,7 +380,8 @@
(define open-file
(λ ()
(let* ([parent (and ; (preferences:get 'framework:open-here?)
(let* ([parent (and (or (not (eq? 'macosx (system-type)))
(preferences:get 'framework:open-here?))
(get-top-level-focus-window))]
[file
(parameterize ([finder:dialog-parent-parameter parent])