Skip to content

Commit

Permalink
Fixed #57
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Tom Francis committed Nov 30, 2020
1 parent 66059b1 commit fb31a5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Forms/ApplicationJobDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit fb31a5b

Please sign in to comment.