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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user