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:
parent
cfbe8cbed5
commit
9913f234db
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user