Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Fix for bug 51301: ClassCastException when deleting items other than make targets in Make Targets view

The fix is trivial.
I couldn't find any JUnit tests regarding MakeTarget etc., so no tests are 
supplied.

Thanks,
Vladimir Hirsl
Rational Software - IBM Software Group
Ottawa, Ontario, Canada

Index: DeleteTargetAction.java
===================================================================
retrieving revision 1.3
diff -u -r1.3 DeleteTargetAction.java
--- DeleteTargetAction.java	22 Aug 2003 21:26:25 -0000	1.3
+++ DeleteTargetAction.java	6 Feb 2004 18:47:04 -0000
@@ -59,7 +59,7 @@
 	}
 
 	public void run() {
-		if (canDelete() && confirmDelete() == false)
+		if ((canDelete() && confirmDelete()) == false)
 			return;
 		List targets = getTargetsToDelete();
 		IMakeTargetManager manager = MakeCorePlugin.getDefault().getTargetManager();

Back to the top