Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Ide] Correctly create a ProjectFile when an existing directory is added

The code had a mismatched if/else which meant that if there was no existing
projectfile mapping to the directory which was just added, a new one was not
added. This resolves bug #3173.
  • Loading branch information...
commit 3610ff42d544946b689a4315562c4cde99341408 1 parent d4336e3
@alanmcgovern alanmcgovern authored
View
6 main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/FolderNodeBuilder.cs
@@ -415,10 +415,10 @@ public void AddExistingFolder ()
MessageService.ShowWarning (GettextCatalog.GetString (
"There is already a link with the name '{0}' in the target directory", srcRoot.FileName));
return;
- } else {
- project.Files.Add (new ProjectFile (targetRoot) { Subtype = Subtype.Directory });
- changedProject = true;
}
+ } else {
+ project.Files.Add (new ProjectFile (targetRoot) { Subtype = Subtype.Directory });
+ changedProject = true;
}
var foundFiles = Directory.GetFiles (srcRoot, "*", SearchOption.AllDirectories);
Please sign in to comment.
Something went wrong with that request. Please try again.