diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-29 12:54:19 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-29 12:54:19 +0400 |
commit | 4d22ae1168a8c3a31ab9f9e88c523cbde91ef715 (patch) | |
tree | a02863e66f0d2445d8bed1160f5d2a7040f6a0a6 /main/src/addins/NUnit | |
parent | fe31746b938a16799f6c25f17a86c50fc97c3717 (diff) |
Fixed 'Bug 1098 - Exception when saving NUnit options'.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Gui/TestNodeBuilder.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/addins/NUnit/Gui/TestNodeBuilder.cs b/main/src/addins/NUnit/Gui/TestNodeBuilder.cs index c30e4063e8..a6f8c28560 100644 --- a/main/src/addins/NUnit/Gui/TestNodeBuilder.cs +++ b/main/src/addins/NUnit/Gui/TestNodeBuilder.cs @@ -190,6 +190,12 @@ namespace MonoDevelop.NUnit info.Enabled = test.SourceCodeLocation != null; } + [CommandUpdateHandler (ProjectCommands.Options)] + protected void OnUpdateShowOptions (CommandInfo info) + { + info.Visible = !(CurrentNode.DataItem is SolutionFolderTestGroup); + } + [CommandHandler (ProjectCommands.Options)] protected void OnShowOptions () { |