Merge pull request #26 from Serraniel/bugfix/#20-application-cannot-be-closed-during-setup

#20 Only continue after login dialog if "ok" is the dialog result.

This will close #20 .
This commit is contained in:
Daniel 2019-01-30 20:58:58 +01:00 committed by GitHub
commit caa1190cb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,7 +201,10 @@ namespace DML.Application.Classes
{ {
Logger.Debug("Showing dialog for username and password..."); Logger.Debug("Showing dialog for username and password...");
var loginDlg = new LoginDialog(); var loginDlg = new LoginDialog();
loginDlg.ShowDialog(); if (loginDlg.ShowDialog() != DialogResult.OK)
{
return;
}
} }
} }