[Mono-bugs] [Bug 79908][Nor] Changed - DialogResult.None does not prevent form close

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 13 15:58:52 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by toshok at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79908

--- shadow/79908	2006-11-13 13:02:30.000000000 -0500
+++ shadow/79908.tmp.23157	2006-11-13 15:58:52.000000000 -0500
@@ -137,6 +137,14 @@
 for other values.
 
 ------- Additional Comments From monkey at jpobst.com  2006-11-11 18:08 -------
 Created an attachment (id=18066)
 Simplified Testcase
 
+
+------- Additional Comments From toshok at ximian.com  2006-11-13 15:58 -------
+the simplified testcase is easily fixed (by adding a check in
+Form.DialogResult), but the original testcase isn't fixed by this. 
+turns out the original testcase includes code that sets the button's
+DialogResult to DialogResult.OK.  And mono's Button.OnClick method
+explicitly sets the form's dialog result to that when it's click. 
+wrong-o.


More information about the mono-bugs mailing list