From fb31a5be554156436c08d9593d16fb18c5aa5809 Mon Sep 17 00:00:00 2001 From: Tom Francis Date: Mon, 30 Nov 2020 16:48:30 -0500 Subject: [PATCH] Fixed #57 Added code to set this.DialogResult to DialogResult.OK when the OK button is clicked. This seems to resolve the problem. I'm not sure how this was working before, or how it suddenly stopped working. This change should guarantee it works as expected (pending any changes from upstream that may test the result of the dialog differently). --- Forms/ApplicationJobDialog.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Forms/ApplicationJobDialog.cs b/Forms/ApplicationJobDialog.cs index 5f017a0..2f90b0c 100644 --- a/Forms/ApplicationJobDialog.cs +++ b/Forms/ApplicationJobDialog.cs @@ -356,6 +356,7 @@ private void SetAutocompleteSource() private void bOK_Click(object sender, EventArgs e) { + this.DialogResult = DialogResult.OK; // Check that name is not empty if (string.IsNullOrEmpty(this.txtApplicationName.Text)) {