Fix for bug 99370: Linux tar file selectable after clicking on next

and back button (r=tao)
This commit is contained in:
shrutiv%netscape.com 2001-10-02 17:48:13 +00:00
Родитель 40212fbb9d
Коммит e221dd8cca
1 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -176,7 +176,7 @@ LRESULT CWizardUI::OnWizardBack()
UpdateGlobals(); UpdateGlobals();
DestroyCurrentScreenWidgets(); DestroyCurrentScreenWidgets();
return FALSE; return FALSE;
} }
if (!prevLock.IsLocked()) if (!prevLock.IsLocked())
{ {
prevLock.Lock(); prevLock.Lock();
@ -202,7 +202,7 @@ LRESULT CWizardUI::OnWizardNext()
DestroyCurrentScreenWidgets(); DestroyCurrentScreenWidgets();
return FALSE; return FALSE;
} }
if (!nextLock.IsLocked()) if (!nextLock.IsLocked())
{ {
nextLock.Lock(); nextLock.Lock();
@ -547,6 +547,18 @@ void CWizardUI::UpdateScreenWidget(WIDGET *curWidget)
if (widg) if (widg)
widg->control->EnableWindow(TRUE); widg->control->EnableWindow(TRUE);
} }
else if ((strcmp(curWidget->value,"Linux")==0) && (direxist != -1))
{
WIDGET *widg = findWidget("LinuxPath");
if (widg)
widg->control->EnableWindow(FALSE);
widg = findWidget("Text7888");
if (widg)
widg->control->EnableWindow(FALSE);
widg = findWidget("Button9888");
if (widg)
widg->control->EnableWindow(FALSE);
}
} }
if (selRv == CB_ERR) if (selRv == CB_ERR)