diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2012-06-01 10:15:19 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2012-06-01 10:15:19 +0400 |
commit | 7c3bdf12a13a9305718145dccec6e6ee0d43a762 (patch) | |
tree | 6b2eaa2330db21ece830dbcf14befa11f07dfaca /main/src | |
parent | db8d14ec60b7d49ce265fa370b43a30abc74a012 (diff) |
Fixed 'Bug 5441 - Partial class for action connection disappears from
.designer file after project upgrade and new outlet'.
Diffstat (limited to 'main/src')
-rwxr-xr-x | main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs b/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs index 4af5752a89..3d623846b4 100755 --- a/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs +++ b/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs @@ -244,7 +244,8 @@ namespace MonoDevelop.MacDev.ObjCIntegration if (!attType.Equals (Resolve (dom, exportAttType))) continue; } - bool isDesigner = MonoDevelop.DesignerSupport.CodeBehind.IsDesignerFile (meth.Region.FileName); + + bool isDesigner = meth.Parts.Any (part => MonoDevelop.DesignerSupport.CodeBehind.IsDesignerFile (part.Region.FileName)); //only support Export from old designer files, user code must be IBAction if (!isDesigner && !isIBAction) continue; @@ -264,7 +265,7 @@ namespace MonoDevelop.MacDev.ObjCIntegration label = null; action.Parameters.Add (new IBActionParameter (label, param.Name, null, param.Type.ReflectionName)); } - if (MonoDevelop.DesignerSupport.CodeBehind.IsDesignerFile (meth.Region.FileName)) + if (meth.Parts.Any (part => MonoDevelop.DesignerSupport.CodeBehind.IsDesignerFile (part.Region.FileName))) action.IsDesigner = true; info.Actions.Add (action); break; |