HaikuDepot: Set B_STOP_ALERT on fatal error BAlerts

This commit is contained in:
John Scipione 2015-10-22 09:57:29 -07:00
parent 6d574ebd1b
commit 7cc5d1688d
1 changed files with 4 additions and 2 deletions

View File

@ -147,7 +147,8 @@ public:
"%s (%s)\n", packageNameString, ex.Message().String(),
ex.Details().String());
BAlert* alert(new(std::nothrow) BAlert(B_TRANSLATE("Fatal error"),
errorString, B_TRANSLATE("Close")));
errorString, B_TRANSLATE("Close"), NULL, NULL,
B_WIDTH_AS_USUAL, B_STOP_ALERT));
if (alert != NULL)
alert->Go(NULL);
return ex.Error();
@ -252,7 +253,8 @@ public:
"%s (%s)\n", packageName, ex.Message().String(),
ex.Details().String());
BAlert* alert(new(std::nothrow) BAlert(B_TRANSLATE("Fatal error"),
errorString, B_TRANSLATE("Close")));
errorString, B_TRANSLATE("Close"), NULL, NULL,
B_WIDTH_AS_USUAL, B_STOP_ALERT));
if (alert != NULL)
alert->Go(NULL);
return ex.Error();