Closed Bug 160486 Opened 22 years ago Closed 22 years ago

'Replace and Find' button gives double 'not found' dialog

Categories

(MailNews Core :: Composition, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: ivo, Assigned: akkzilla)

Details

Attachments

(1 file)

 
In the 'Find and Replace' dialog, there's a button 'Replace and Find'.

If I enter a text that cannot be found, and I press 'Replace and Find', I get 2
popups saying that the text cannot be found.
Severity: normal → minor
Summary: Replace and Find' → 'Replace and Find' button gives double 'not found' dialog
-->akkana
Assignee: ducarroz → akkana
QA Contact: esther → sujay
The reason is that if current selection doesn't match the search str, 
onFindNext() will be called twice. This is wrong.
maybe you can fix it before we go gym?
Status: UNCONFIRMED → NEW
Ever confirmed: true
I think we don't need to call onFindNext() in onReplace(). Click Replace button
should do nothing if current selection doesn't match the select str. User
should use Find button to do the find.
Akkana, what do you think of it?
Yes, quite right.  r=akkana.  Thanks, Harry!  Kin, can you sr this?  It's a
one-line patch.
Status: NEW → ASSIGNED
Attachment #93678 - Flags: review+
Argh -- this never got a super-review!  Simon, can you please sr this one-line
patch?
Target Milestone: --- → mozilla1.2alpha
Comment on attachment 93678 [details] [diff] [review]
don't call onFindNext() in onReplace()

sr=sfraser
Attachment #93678 - Flags: superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: