summaryrefslogtreecommitdiff
path: root/lisp/cedet/ede.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/ede.el')
-rw-r--r--lisp/cedet/ede.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el
index 42c4508e52d..53087e12658 100644
--- a/lisp/cedet/ede.el
+++ b/lisp/cedet/ede.el
@@ -659,7 +659,9 @@ Argument MENU-DEF is the menu definition to use."
"Target Forms"
(let ((obj (or ede-selected-object ede-object)))
(append
- '([ "Add File" ede-add-file (ede-current-project) ]
+ '([ "Add File" ede-add-file
+ (and (ede-current-project)
+ (oref (ede-current-project) targets)) ]
[ "Remove File" ede-remove-file
(and ede-object
(or (listp ede-object)