From 506a7b97c159670028eb7f7186dd097f230986b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 10 Nov 2010 10:51:47 +0000 Subject: [PATCH] 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 --- src/servers/registrar/ShutdownProcess.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/servers/registrar/ShutdownProcess.cpp b/src/servers/registrar/ShutdownProcess.cpp index 62eef2b646..3a5428db9b 100644 --- a/src/servers/registrar/ShutdownProcess.cpp +++ b/src/servers/registrar/ShutdownProcess.cpp @@ -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();