Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpc/stand/hpcboot/menu If "pause before boot" is no...
details: https://anonhg.NetBSD.org/src/rev/d9e63741cf24
branches: trunk
changeset: 556714:d9e63741cf24
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Dec 25 03:44:11 2003 +0000
description:
If "pause before boot" is not set (i.e. user will not be given last
chance to cancel the boot), give user a hint by using MB_ICONWARNING
for the "Are you sure?" dialog.
diffstat:
sys/arch/hpc/stand/hpcboot/menu/rootwindow.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 3d2529573864 -r d9e63741cf24 sys/arch/hpc/stand/hpcboot/menu/rootwindow.cpp
--- a/sys/arch/hpc/stand/hpcboot/menu/rootwindow.cpp Thu Dec 25 03:19:53 2003 +0000
+++ b/sys/arch/hpc/stand/hpcboot/menu/rootwindow.cpp Thu Dec 25 03:44:11 2003 +0000
@@ -1,4 +1,4 @@
-/* -*-C++-*- $NetBSD: rootwindow.cpp,v 1.11 2003/12/25 03:19:53 uwe Exp $ */
+/* -*-C++-*- $NetBSD: rootwindow.cpp,v 1.12 2003/12/25 03:44:11 uwe Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -147,10 +147,12 @@
// inquire current options.
menu.get_options();
if (menu._pref.safety_message) {
+ UINT mb_icon = menu._pref.pause_before_boot ?
+ MB_ICONQUESTION : MB_ICONWARNING;
if (MessageBox(_window,
TEXT("Data in memory will be lost.\nAre you sure?"),
TEXT("WARNING"),
- MB_ICONQUESTION | MB_YESNO) != IDYES)
+ mb_icon | MB_YESNO) != IDYES)
break;
UpdateWindow(w);
}
Home |
Main Index |
Thread Index |
Old Index