Browse Source

Fixed SD2-1158: Exception thrown trying to reset event values in the properties pad of an inherited form.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1995 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
5bc6cb290f
  1. 3
      src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPadCommands.cs

3
src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPadCommands.cs

@ -17,7 +17,8 @@ namespace ICSharpCode.SharpDevelop.Gui
try { try {
PropertyPad.Grid.ResetSelectedProperty(); PropertyPad.Grid.ResetSelectedProperty();
} catch (Exception e) { } catch (Exception e) {
MessageService.ShowError(e, "${res:ICSharpCode.SharpDevelop.Gui.Pads.PropertyPadResetCommand}"); MessageService.ShowError("${res:ICSharpCode.SharpDevelop.Gui.Pads.PropertyPadResetCommand}"
+ Environment.NewLine + e.Message);
} }
} }
} }

Loading…
Cancel
Save