Skip to content

Commit

Permalink
Fix bug where an email destination that uses a custom port does not g…
Browse files Browse the repository at this point in the history
…et loaded

* check default port checkbox if the port is 0 not greater than 0
  • Loading branch information
ddaspit committed Dec 17, 2015
1 parent 8fd30cc commit 4493534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBug.Configurator/SubmitPanels/Web/Mail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public string ConnectionString
this.useAttachmentCheckBox.Checked = mail.UseAttachment;
this.portNumericUpDown.Value = mail.Port;

if (this.portNumericUpDown.Value == 25 || this.portNumericUpDown.Value == 465 || mail.Port > 0)
if (this.portNumericUpDown.Value == 25 || this.portNumericUpDown.Value == 465 || mail.Port == 0)
{
this.defaultPortCheckBox.Checked = true;
}
Expand Down

0 comments on commit 4493534

Please sign in to comment.