From 5649e60d69c5c6ae88aaa8fa6795f82a9eff8428 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 22 Feb 2012 15:08:30 +0000 Subject: [PATCH] dialog was returning a result of Cancel even though the result was set to OK. --- PROMS/VEPROMS User Interface/frmSectionProperties.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index 7875c56f..692154ad 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -74,7 +74,6 @@ namespace VEPROMS // Save whether we should display the default values on this property page Settings.Default.ShowDefaultSectionProp = ppCbShwDefSettings.Checked; Settings.Default.Save(); - DialogResult = DialogResult.OK; // save the type based on selection. _SectionConfig.MySection.MyContent.Type = ((DocStyle)ppCmbxStyleSectionType.SelectedItem).Index + 10000; @@ -105,6 +104,7 @@ namespace VEPROMS SaveText(ppSectNumberStpRTB); SaveText(ppSectTitleStpRTB); mySection.Dispose(); + this.DialogResult = DialogResult.OK; this.Close(); } public void SaveText(StepRTB myStepRTB)