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)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.2alpha
People
(Reporter: ivo, Assigned: akkzilla)
Details
Attachments
(1 file)
773 bytes,
patch
|
akkzilla
:
review+
sfraser_bugs
:
superreview+
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•22 years ago
|
||
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
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?
Assignee | ||
Comment 6•22 years ago
|
||
Yes, quite right. r=akkana. Thanks, Harry! Kin, can you sr this? It's a one-line patch.
Status: NEW → ASSIGNED
Assignee | ||
Updated•22 years ago
|
Attachment #93678 -
Flags: review+
Assignee | ||
Comment 7•22 years ago
|
||
Argh -- this never got a super-review! Simon, can you please sr this one-line patch?
Target Milestone: --- → mozilla1.2alpha
Comment 8•22 years ago
|
||
Comment on attachment 93678 [details] [diff] [review] don't call onFindNext() in onReplace() sr=sfraser
Attachment #93678 -
Flags: superreview+
Assignee | ||
Comment 9•22 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•