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:
authorLluis Sanchez <lluis@xamarin.com>2013-12-09 15:32:08 +0400
committerLluis Sanchez <lluis@xamarin.com>2013-12-09 15:32:08 +0400
commitc3b7341e062795f2f5e06e061761218aaf30ee34 (patch)
tree92b636fc9fe134e113bd2434c8148ddf953f9c84 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parentb213b63446e78c074d072b376cd444c229cc0dc6 (diff)
parentcb790398e17ed190e54101935a4c6d987286b126 (diff)
Merge remote-tracking branch 'origin/master' into retina
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
index dd359726ee..2436ecfc26 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -122,11 +122,7 @@ namespace MonoDevelop.Ide.Commands
protected override void Update (CommandInfo info)
{
- bool hasdirty = false;
- for(int i = 0; i < IdeApp.Workbench.Documents.Count; i++) {
- hasdirty |= IdeApp.Workbench.Documents [i].IsDirty;
- }
- info.Enabled = hasdirty;
+ info.Enabled = IdeApp.Workbench.Documents.Any (v => v.IsDirty);
}
}
//MonoDevelop.Ide.Commands.FileCommands.NewProject