From 2cf7132270649a8ce7fbec66680c6cec4c7bdf86 Mon Sep 17 00:00:00 2001 From: "sgehani%netscape.com" Date: Wed, 5 Jul 2000 03:53:09 +0000 Subject: [PATCH] Prevent multiple redundant downloads when default (return) key is hit more than once. [nsbeta2+ b = 31042; r=ssu] --- xpinstall/wizard/mac/src/EvtHandlers.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xpinstall/wizard/mac/src/EvtHandlers.c b/xpinstall/wizard/mac/src/EvtHandlers.c index 983a5523575..979a08dbe39 100644 --- a/xpinstall/wizard/mac/src/EvtHandlers.c +++ b/xpinstall/wizard/mac/src/EvtHandlers.c @@ -101,7 +101,7 @@ void HandleMouseDown(EventRecord* evt) } } -static sInstallStarted = false; +static Boolean sInstallStarted = false; void HandleKeyDown(EventRecord* evt) { @@ -118,7 +118,7 @@ void HandleKeyDown(EventRecord* evt) { case '\r': case '\3': - if (gControls->nextB) + if (gControls->nextB && !sInstallStarted) { HiliteControl(gControls->nextB, 1); Delay(8, &finalTicks); @@ -160,7 +160,8 @@ void HandleKeyDown(EventRecord* evt) return; case kTerminalID: if (!sInstallStarted) - { + { + DisableNavButtons(); ClearSiteSelector(); SpawnSDThread(Install, &tid); sInstallStarted = true;