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

Merged
Serraniel merged 1 commit from bugfix/#20-application-cannot-be-closed-during-setup into support/1.2 2019-01-30 20:58:59 +01:00

View file

@ -193,7 +193,7 @@ namespace DML.Application.Classes
}
}
catch (HttpException e)
catch (HttpException)
{
Logger.Warn("HTTPException occured during login. Probably from login token.");
}
@ -202,7 +202,10 @@ namespace DML.Application.Classes
{
Logger.Debug("Showing dialog for username and password...");
var loginDlg = new LoginDialog();
loginDlg.ShowDialog();
if (loginDlg.ShowDialog() != DialogResult.OK)
{
return;
}
}
}