[mono/monodevelop] 4b977a67: Bug 7155 - Add new Solution Folder

"Therzok ([email protected])" <[email protected]> Sun, 24 Nov 2013 15:30:59 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001428abc3615-340dd757-92e4-4491-823c-37af43a1ae84-000000@email.amazonses.com>
   Branch: refs/heads/bug7155
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/commit/4b977a67c069

   Commit: 4b977a67c069da5f6661bd3e6af6e29bc4d34eef
   Author: Therzok <[email protected]> (Therzok)
     Date: 2013-11-24 15:29:23 GMT
      URL: https://github.com/mono/monodevelop/commit/4b977a67c069da5f6661bd3e6af6e29bc4d34eef

Bug 7155 - Add new Solution Folder

In case the project is under version control, if we add an empty
SolutionFolder item, we do a tree rebuild, which cancels the name
editing action.

Changed paths:
  M main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs

Modified: main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs
===================================================================
@@ -544,7 +544,10 @@ static void OnEntryAdded (object o, SolutionItemEventArgs args)
 						repo.Add (v.LocalPath, false, monitor);
 				}
 			}
-			
+
+			if (entry is SolutionFolder && files.Count == 1)
+				return;
+
 			NotifyFileStatusChanged (new FileUpdateEventArgs (repo, parent.BaseDirectory, true));
 		}
 		


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