Prevent the shutdown dialog from minimizing without an entry

in Deskbar (registrar is a background application). Fixes ticket
#6809.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39385 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-11-10 10:51:47 +00:00
parent c8fa948b2a
commit 506a7b97c1
1 changed files with 5 additions and 0 deletions

View File

@ -1244,7 +1244,12 @@ ShutdownProcess::_WorkerDoShutdown()
BAlert* alert = new BAlert(title, text, "Cancel", otherText, defaultText,
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
alert->SetShortcut(0, B_ESCAPE);
// We want the alert to behave more like a regular window...
alert->SetFeel(B_NORMAL_WINDOW_FEEL);
// ...but not quit. Minimizing the alert would prevent the user from
// finding it again, since registrar does not have an entry in the
// Deskbar.
alert->SetFlags(alert->Flags() | B_NOT_MINIMIZABLE);
alert->SetWorkspaces(B_ALL_WORKSPACES);
int32 result = alert->Go();