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
This commit is contained in:
akkana%netscape.com
2002-08-12 21:57:00 +00:00
parent bea6b1f22a
commit 8b3b7ee76b

View File

@@ -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();