From 3b757787350ec885417d85dfb81425e5cd7cd8ea Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 5 Oct 2000 18:02:09 +0000 Subject: If user selects no distributions at all, assume "User" as a default. This should prevent people from whacking return at the Distributions menu and getting nothing selected as a result (a minimal "standard" system will at least install). Flagged as big tech support headache by: Chris Shumway --- usr.sbin/sade/install.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.sbin/sade') diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index 8c216eb..48ce0c7 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -676,9 +676,12 @@ installCommit(dialogMenuItem *self) if (!Dists) distConfig(NULL); - if (!Dists) - if (!dmenuOpenSimple(&MenuDistributions, FALSE) && !Dists) - return DITEM_FAILURE; + if (!Dists) { + (void)dmenuOpenSimple(&MenuDistributions, FALSE); + /* select reasonable defaults if necessary */ + if (!Dists) + Dists = _DIST_USER; + } if (!mediaVerify()) return DITEM_FAILURE; -- cgit v1.1