From 0a81ce7c3dfdaf11f3e92771f03c1ac3be02a811 Mon Sep 17 00:00:00 2001 From: Oleg Krasilnikov Date: Wed, 2 May 2007 11:38:16 +0000 Subject: [PATCH] Bug #184671 --- .../eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java index 7ae416c57fb..7234dde055a 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java @@ -122,11 +122,9 @@ implements IExecutableExtension, IWizardWithMemory */ private void clearProject() { if (lastProjectName == null) return; - if (!existingPath) { - try { - ResourcesPlugin.getWorkspace().getRoot().getProject(lastProjectName).delete(true, true, null); - } catch (CoreException ignore) {} - } + try { + ResourcesPlugin.getWorkspace().getRoot().getProject(lastProjectName).delete(!existingPath, true, null); + } catch (CoreException ignore) {} newProject = null; lastProjectName = null; lastProjectLocation = null;