summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-26 18:19:38 +0000
committerjkh <jkh@FreeBSD.org>1996-04-26 18:19:38 +0000
commit63a39b133febd79dac1e294c7519346665cf54ec (patch)
tree1ec8ccf1e95bf1812ff27dc4d29a47c50046a929 /usr.sbin/sysinstall/media.c
parent60683a571f9c6f34db1b82a71ee8f5af7ece0906 (diff)
downloadFreeBSD-src-63a39b133febd79dac1e294c7519346665cf54ec.zip
FreeBSD-src-63a39b133febd79dac1e294c7519346665cf54ec.tar.gz
Fix display refresh bug in displayHelp()
Go back to Normal menus for Media and FTP menus rather than radio menus - the difference in behavior is confusing and sort of detracts from the added (small) advantage of seeing what you last picked.
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r--usr.sbin/sysinstall/media.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index 384d358..293e7e9 100644
--- a/usr.sbin/sysinstall/media.c
+++ b/usr.sbin/sysinstall/media.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: media.c,v 1.33 1996/04/23 01:29:26 jkh Exp $
+ * $Id: media.c,v 1.34 1996/04/25 17:31:22 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -51,7 +51,7 @@ genericHook(dialogMenuItem *self, DeviceType type)
devs = deviceFind(self->prompt, type);
if (devs)
mediaDevice = devs[0];
- return devs ? DITEM_SUCCESS : DITEM_FAILURE;
+ return (devs ? DITEM_LEAVE_MENU : DITEM_FAILURE);
}
static int
@@ -492,9 +492,10 @@ mediaExtractDist(char *dir, int fd)
int
mediaGetType(dialogMenuItem *self)
{
- if (!dmenuOpenSimple(&MenuMedia))
- return DITEM_FAILURE | DITEM_RESTORE | DITEM_RECREATE;
- return DITEM_SUCCESS | DITEM_RESTORE | DITEM_RECREATE;
+ int i;
+
+ i = dmenuOpenSimple(&MenuMedia) ? DITEM_SUCCESS : DITEM_FAILURE;
+ return i | DITEM_RESTORE | DITEM_RECREATE;
}
/* Return TRUE if all the media variables are set up correctly */
OpenPOWER on IntegriCloud