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 <cshumway@osd.bsdi.com>
This commit is contained in:
Jordan K. Hubbard 2000-10-05 18:02:09 +00:00
parent cfbe8cbed5
commit 9913f234db
3 changed files with 18 additions and 9 deletions

View File

@ -676,9 +676,12 @@ installCommit(dialogMenuItem *self)
if (!Dists)
distConfig(NULL);
if (!Dists) {
(void)dmenuOpenSimple(&MenuDistributions, FALSE);
/* select reasonable defaults if necessary */
if (!Dists)
if (!dmenuOpenSimple(&MenuDistributions, FALSE) && !Dists)
return DITEM_FAILURE;
Dists = _DIST_USER;
}
if (!mediaVerify())
return DITEM_FAILURE;

View File

@ -676,9 +676,12 @@ installCommit(dialogMenuItem *self)
if (!Dists)
distConfig(NULL);
if (!Dists) {
(void)dmenuOpenSimple(&MenuDistributions, FALSE);
/* select reasonable defaults if necessary */
if (!Dists)
if (!dmenuOpenSimple(&MenuDistributions, FALSE) && !Dists)
return DITEM_FAILURE;
Dists = _DIST_USER;
}
if (!mediaVerify())
return DITEM_FAILURE;

View File

@ -676,9 +676,12 @@ installCommit(dialogMenuItem *self)
if (!Dists)
distConfig(NULL);
if (!Dists) {
(void)dmenuOpenSimple(&MenuDistributions, FALSE);
/* select reasonable defaults if necessary */
if (!Dists)
if (!dmenuOpenSimple(&MenuDistributions, FALSE) && !Dists)
return DITEM_FAILURE;
Dists = _DIST_USER;
}
if (!mediaVerify())
return DITEM_FAILURE;