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
This commit is contained in:
parent
c085de40db
commit
530cb79cf1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user