[mono/monodevelop] c8c1843f: Bug 6097 - Add -> ASP.NET Directory Flyout Issue

"Therzok ([email protected])" <[email protected]> Sun, 24 Nov 2013 18:01:11 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001428b45b9e3-fc498004-805d-4003-aaaf-5628d7b3d525-000000@email.amazonses.com>
   Branch: refs/heads/bug6097
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/commit/c8c1843f362b

   Commit: c8c1843f362b6f4ebd1f1e0284ec703671bdcef3
   Author: Therzok <[email protected]> (Therzok)
     Date: 2013-11-24 17:59:50 GMT
      URL: https://github.com/mono/monodevelop/commit/c8c1843f362b6f4ebd1f1e0284ec703671bdcef3

Bug 6097 - Add -> ASP.NET Directory Flyout Issue

Temporary hackfix for flyout having no children.

Changed paths:
  M main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/ProjectFolderNodeBuilderExtension.cs

Modified: main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/ProjectFolderNodeBuilderExtension.cs
===================================================================
@@ -80,6 +80,11 @@ public void OnAddSpecialDirectoryUpdate (CommandArrayInfo info)
 				CommandInfo cmd = info.Add (dir.Replace("_", "__"), dir);
 				cmd.Enabled = fullPaths.Contains (proj.BaseDirectory.Combine (dir));
 			}
+
+			if (info.Count == 0) {
+				CommandInfo cmd = info.Add ("None to add", null);
+				cmd.Enabled = false;
+			}
 		}
 
 		static void RemoveDirsNotInProject (List<FilePath> dirs, Project proj)


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches