[mono/monodevelop] 1880b2e0: [Debugger] Combo unavailable in case of features not being available.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141db5ffbe7-fbe42a1c-3dcc-499a-9441-b703aa6ec4d9-000000@email.amazonses.com> |
Branch: refs/heads/bpDialog2
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/3345f883e8a4...1880b2e0ba37
Commit: 1880b2e0ba373762b24494f9767ca71aa17332c8
Author: Therzok <[email protected]> (Therzok)
Date: 2013-10-21 14:14:44 GMT
URL: https://github.com/mono/monodevelop/commit/1880b2e0ba373762b24494f9767ca71aa17332c8
[Debugger] Combo unavailable in case of features not being available.
Changed paths:
M main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs
Modified: main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs
===================================================================
@@ -301,13 +301,13 @@ void OnSave (object sender, EventArgs e)
void OnUpdateControls (object sender, EventArgs e)
{
// Check which radio is selected.
- hboxFunction.Sensitive = stopOnFunction.Active;
- hboxLineColumn.Sensitive = stopOnLocation.Active;
- hboxLocation.Sensitive = stopOnLocation.Active;
- hboxException.Sensitive = stopOnException.Active;
+ hboxFunction.Sensitive = stopOnFunction.Active && DebuggingService.IsFeatureSupported (DebuggerFeatures.Breakpoints);
+ hboxLineColumn.Sensitive = stopOnLocation.Active && DebuggingService.IsFeatureSupported (DebuggerFeatures.Breakpoints);
+ hboxLocation.Sensitive = stopOnLocation.Active && DebuggingService.IsFeatureSupported (DebuggerFeatures.Breakpoints);
+ hboxException.Sensitive = stopOnException.Active && DebuggingService.IsFeatureSupported (DebuggerFeatures.Catchpoints);
// FIXME: Add support for not doing base add
//checkIncludeSubclass.Sensitive = stopOnException.Active;
- hboxCondition.Sensitive = !stopOnException.Active;
+ hboxCondition.Sensitive = !stopOnException.Active && DebuggingService.IsFeatureSupported (DebuggerFeatures.ConditionalBreakpoints);
// Check conditional
if (!String.IsNullOrEmpty (entryConditionalExpression.Text))
@@ -322,7 +322,7 @@ void OnUpdateControls (object sender, EventArgs e)
ignoreHitCount.Show ();
// Check printing an expression.
- entryPrintExpression.Sensitive = checkPrintExpression.Active;
+ entryPrintExpression.Sensitive = checkPrintExpression.Active && DebuggingService.IsFeatureSupported (DebuggerFeatures.Tracepoints);
checkResumeExecution.Sensitive = checkPrintExpression.Active;
checkResumeExecution.Active &= checkPrintExpression.Active;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches