From 44935345e81f81cc5c4cb5004e138c2e34ce1ce5 Mon Sep 17 00:00:00 2001 From: Damien Daspit Date: Thu, 17 Dec 2015 11:08:02 +0700 Subject: [PATCH] Fix bug where an email destination that uses a custom port does not get loaded * check default port checkbox if the port is 0 not greater than 0 --- NBug.Configurator/SubmitPanels/Web/Mail.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NBug.Configurator/SubmitPanels/Web/Mail.cs b/NBug.Configurator/SubmitPanels/Web/Mail.cs index 28f0d83..79ab1bd 100644 --- a/NBug.Configurator/SubmitPanels/Web/Mail.cs +++ b/NBug.Configurator/SubmitPanels/Web/Mail.cs @@ -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; }