Author: lluis
Date: 2007-12-13 18:21:30 -0500 (Thu, 13 Dec 2007)
New Revision: 91257
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs
Log:
* MonoDevelop.Components.Commands/CommandManager.cs: Before executing
the command bound to a shortcut, check if the command is enabled.
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
2007-12-13 22:32:56 UTC (rev 91256)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog
2007-12-13 23:21:30 UTC (rev 91257)
@@ -1,3 +1,8 @@
+2007-12-14 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Components.Commands/CommandManager.cs: Before executing
the
+ command bound to a shortcut, check if the command is enabled.
+
2007-12-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Components.Commands/LinkCommandEntry.cs: Moved
PlatformService
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs
2007-12-13 22:32:56 UTC (rev 91256)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs
2007-12-13 23:21:30 UTC (rev 91257)
@@ -189,7 +189,8 @@
}
for (int i = 0; i < commands.Count; i++) {
- if (DispatchCommand (commands[i].Id))
+ CommandInfo cinfo = GetCommandInfo
(commands[i].Id, null);
+ if (cinfo.Enabled && cinfo.Visible &&
DispatchCommand (commands[i].Id))
break;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches