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:
authorUngureanu Marius <teromario@yahoo.com>2013-12-07 14:26:15 +0400
committerUngureanu Marius <teromario@yahoo.com>2013-12-07 14:26:15 +0400
commitd7d661ff54e013e86c543f0d81c1379ae2d251d6 (patch)
treed4e206d669d25c6aab265f81c7a09091a07551fb /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parentd1e1165dfd54d087131ac065fc4967b9dbba10ed (diff)
Simplify Update for SaveAll
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 16096b39b1..731e37cfa5 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