Whoops! Fix an infinite loop I lovingly introduced into this code

with a previous commit.
This commit is contained in:
jkh 1997-01-17 14:05:37 +00:00
parent aef403ae97
commit 5f482c5585
3 changed files with 15 additions and 6 deletions

View File

@ -499,8 +499,11 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!dmenuOpenSimple(&MenuDistributions, FALSE))
return DITEM_FAILURE | DITEM_RESTORE;
if (!Dists && msgYesNo("No distributions selected. Revisit the distributions menu?"))
if (Dists)
break;
if (msgYesNo("No distributions selected. Revisit the distributions menu?"))
return DITEM_FAILURE | DITEM_RESTORE;
}

View File

@ -499,8 +499,11 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!dmenuOpenSimple(&MenuDistributions, FALSE))
return DITEM_FAILURE | DITEM_RESTORE;
if (!Dists && msgYesNo("No distributions selected. Revisit the distributions menu?"))
if (Dists)
break;
if (msgYesNo("No distributions selected. Revisit the distributions menu?"))
return DITEM_FAILURE | DITEM_RESTORE;
}

View File

@ -499,8 +499,11 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!dmenuOpenSimple(&MenuDistributions, FALSE))
return DITEM_FAILURE | DITEM_RESTORE;
if (!Dists && msgYesNo("No distributions selected. Revisit the distributions menu?"))
if (Dists)
break;
if (msgYesNo("No distributions selected. Revisit the distributions menu?"))
return DITEM_FAILURE | DITEM_RESTORE;
}