Skip to content

Commit

Permalink
Minor fix to make things load at least.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Nov 26, 2017
1 parent 72ac62c commit c4f098a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions editor/subject-chooser.lisp
Expand Up @@ -74,15 +74,18 @@
(inspect selected))))

(defun find-subject-instances (base-class)
(let ((result ()))
(labels ((r (class)
(loop for ptr in (trial:instances class)
for val = (tg:weak-pointer-value ptr)
when val do (push val result))
(dolist (sub (c2mop:class-direct-subclasses class))
(r sub))))
(r base-class))
result))
()
;;; FIXME: Instances are no longer tracked by Trial!
;; (let ((result ()))
;; (labels ((r (class)
;; (loop for ptr in (trial:instances class)
;; for val = (tg:weak-pointer-value ptr)
;; when val do (push val result))
;; (dolist (sub (c2mop:class-direct-subclasses class))
;; (r sub))))
;; (r base-class))
;; result)
)

(define-widget instance-listing (QWidget qui:listing)
()
Expand Down

0 comments on commit c4f098a

Please sign in to comment.