add a check to make sure we don't try to select a teachpack when the

user clicks on empty space

closes PR 12472
This commit is contained in:
Robby Findler 2012-01-05 22:39:42 -06:00
parent 061007f30f
commit 20bcf80e8b

View File

@ -741,9 +741,10 @@
[parent user-installed-gb]))
(define (selected lb)
(unless compiling?
(set! answer (figure-out-answer))
(send dlg show #f)))
(when (send lb get-selection)
(unless compiling?
(set! answer (figure-out-answer))
(send dlg show #f))))
(define (clear-selection lb)
(for-each