From 8b3b7ee76b10d293cbe172e65873112f6ede117d Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Mon, 12 Aug 2002 21:57:00 +0000 Subject: [PATCH] 160486: prevent double 'not found' dialog. Fix from Harry Lu (harry.lu@sun.com), r=me, sr=sfraser git-svn-id: svn://10.0.0.236/trunk@127100 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/dialogs/content/EdReplace.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/editor/ui/dialogs/content/EdReplace.js b/mozilla/editor/ui/dialogs/content/EdReplace.js index 456b3f68d31..abe9cd2e227 100644 --- a/mozilla/editor/ui/dialogs/content/EdReplace.js +++ b/mozilla/editor/ui/dialogs/content/EdReplace.js @@ -205,8 +205,9 @@ function onReplace() // If the current selection doesn't match the pattern, // then we want to find the next match, but not do the replace. // That's what most other apps seem to do. + // So here, just return. if (!matches) - return onFindNext(); + return false; // Transfer dialog contents to the find service. saveFindData();