DialogResult is not currently checked, so it's a minimal/non-impact bug currently. But it's fixed now in case it's used in the future...
This commit is contained in:
Sean Kaim
2018-07-29 21:30:11 -04:00
parent 18d7344690
commit 6a9fb25a18
2 changed files with 7 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ Fixes:
#971: Portable Settings now apply to any machine they are used on
#961: Connections file overwritten if correct decryption password not provided
#893: Removed unneeded files from build/package
#868: if statement returned the same value
#762: Increased button size to fit locaized text

View File

@@ -55,12 +55,12 @@ namespace mRemoteNG.UI.Forms
}
private void btnOK_Click(object sender, EventArgs e)
{
if (Verify && VerifyPassword())
DialogResult = DialogResult.OK;
else
DialogResult = DialogResult.OK;
}
{
if (Verify && VerifyPassword())
DialogResult = DialogResult.OK;
else
DialogResult = DialogResult.None;
}
private void txtPassword_TextChanged(object sender, EventArgs e)
{