Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Munn <greg@sgmunn.com>2014-06-12 14:37:00 +0400
committerGreg Munn <greg@sgmunn.com>2014-06-12 14:37:00 +0400
commit6a9b7917f306da02d5c6134363353e1b9ef79540 (patch)
tree29f6cc96ed30fcd2916ba224df1893b66c1a1641 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad
parentdfc742e58838efc6db30f74dd3c0947fe5afc307 (diff)
[Ide] Do not show all files in solution folders.
Addresses bug 19704 - Exception displayed if show all files options is active and user tries to create new folder in newly added solution. Showing all files in solution files can lead to confusing behaviour when a project is shown as being a child of a solution folder when, in fact, it is not. Solution folders should only show projects that have been explicitly added to that folder.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ShowAllFilesBuilderExtension.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ShowAllFilesBuilderExtension.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ShowAllFilesBuilderExtension.cs
index fd5484c938..0d9fe017ed 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ShowAllFilesBuilderExtension.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ShowAllFilesBuilderExtension.cs
@@ -51,6 +51,9 @@ namespace MonoDevelop.Ide.Gui.Pads.ProjectPad
public override bool CanBuildNode (Type dataType)
{
+ if (typeof(SolutionFolder).IsAssignableFrom (dataType))
+ return false;
+
return typeof(IFolderItem).IsAssignableFrom (dataType);
}