From 530cb79cf1df1abe4722cb9adf88901a5318b22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 18 Jul 2005 16:43:40 +0000 Subject: [PATCH] Exchanged the order of the "Cancel" and "Reboot"/"Shutdown" buttons (and made the latter the default), with Ingo's generous admission :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13753 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/ShutdownProcess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/registrar/ShutdownProcess.cpp b/src/servers/registrar/ShutdownProcess.cpp index 229310efb8..2597c31737 100644 --- a/src/servers/registrar/ShutdownProcess.cpp +++ b/src/servers/registrar/ShutdownProcess.cpp @@ -1244,11 +1244,11 @@ ShutdownProcess::_WorkerDoShutdown() ? "Do you really want to reboot the system?" : "Do you really want to shut down the system?"); const char *buttonText = (fReboot ? "Reboot" : "Shut Down"); - BAlert *alert = new BAlert(title, text, buttonText, "Cancel", NULL, + BAlert *alert = new BAlert(title, text, "Cancel", buttonText, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT); int32 result = alert->Go(); - if (result != 0) + if (result != 1) throw_error(B_SHUTDOWN_CANCELLED); }