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

with a previous commit.
This commit is contained in:
Jordan K. Hubbard 1997-01-17 14:05:37 +00:00
parent ae0fde8e14
commit 79e6e0e3a2
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;
}