Closed Bug 171711 Opened 22 years ago Closed 22 years ago

Delete in standalone window only works once

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mikepinkerton, Assigned: naving)

References

Details

(Keywords: regression, Whiteboard: [adt1])

Attachments

(1 file, 2 obsolete files)

- open mail in standalone window - click delete (it'll delete and advance to next message) - click delete again expected: - second message deleted actual: - nothing happens you have to close the standalone window and open it again for delete to work, and then it'll only work once. build from 9/29/02, macosx
QA Contact: olgam → stephend
I see this as well with build 2002-09-30-10 on Windows 2000, IMAP. I enabled JS dumps, strict warnings (both in chrome and web content), and nothing stands out.
OS: MacOS X → All
Hardware: Macintosh → All
keyword lovin' - regression and nsbeta1
Keywords: nsbeta1, regression
Pink, care if I dup this to bug 90539? Looks like that bug at least has a TM.
90539 could be similar, but I'm not sure since that mentions the delete key only and it's old. This is definitely with the delete toolbar button. We should try to fix this asap. If this is happening in 90539 then this is probably happening on the branch. Stephen, can you see if the latest branch build has this problem, too?
Assignee: sspitzer → ssu
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt1]
Using 2002092010, windows trunk, i am seeing this too. Noticed it in the last couple of trunk builds. Could bug 27417 (When tree item deleted, next item should be selected(selection should not be destroyed)) be at all related? Since once the first msg is deleted, the 2nd msg (the one now being displayed in standalone) is no longer selected in 3 pane?
Scott, Delete using the toolbar button on the branch's Windows 2000 build with the 'Move message to Trash' IMAP delete model works fine with the 30th build.
thanks for looking at that Stephen. So, this is most likely a pretty new bug.
taking - I'm strongly suspect I sr'ed the change that caused this.
Assignee: ssu → bienvenu
-> Navin OK, I suck - I should really have insisted on my objections to the patch that caused this. the problem is that in the standalone window, m_deletingRows is never cleared in the stand-alone msg window view, so subsequent deletes won't ever work.
Assignee: bienvenu → naving
Attached patch proposed fix (obsolete) — Splinter Review
The fix is to call nsMsgDBView::OnDeleteCompleted for messageWindow just like we do for 3 pane and also check for mTreeSelection in OnDeleteCompleted because stand alone window will have mTreeSelection as null.
cavin, bienvenu, reviews? thx.
Status: NEW → ASSIGNED
Comment on attachment 101186 [details] [diff] [review] proposed fix r=cavin.
Attachment #101186 - Flags: review+
Attached patch proposed fix, v2 (obsolete) — Splinter Review
missed out failure case in the last patch.
Attachment #101186 - Attachment is obsolete: true
Attached patch proposed fix, v2Splinter Review
missed out failure case in the last patch.
Comment on attachment 101192 [details] [diff] [review] proposed fix, v2 wrong patch.
Attachment #101192 - Attachment is obsolete: true
Attachment #101193 - Flags: superreview+
Comment on attachment 101193 [details] [diff] [review] proposed fix, v2 sr=bienvenu
fixed
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified FIXED with the 2002-10-01-08 builds on: Mac OS X 10.1.5, Windows 2000 and RedHat 8.0 Linux. Tested: POP3 - works fine. IMAP - 'Mark as Deleted', 'Move it to the Trash folder' and 'Remove it immediately' delete models. Note that 'Mark as Deleted' doesn't advance to the next message after a mark, but that's bug 150462. Both 'Move it to the Trash folder' and 'Remove it immediately' work as expected now with IMAP. Verified FIXED
Status: RESOLVED → VERIFIED
*** Bug 171067 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
Blocks: 80897
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: