Summary: | kmail view outgoing mail crash on send | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | oyvind |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Screenshots of KMail just before it crashes |
Description
oyvind
2002-10-04 13:23:17 UTC
Created attachment 135 [details]
Screenshots of KMail just before it crashes
kmailcrash2.png is what kmail looks like when you are viewing a mail that's
actually sendt. From there, all you have to do is press 'body part', and it's a
crash. :-( KMail should clear/remove the select-mime/message-part aera when the
message ain't there nomore.
Subject: kdepim/kmail CVS commit by tilladam: When the last mail in the outbox is sent, cleanup is called, which calls compact, which emits folder changed, which calls msgChanged, which emits maybeDeleting, which calls KMReaderWin::clearCache, which disables the updateTimer which has been started by KMReaderWin::setMsg (0) and which, had it not been prevented from doing so by the above, would have cleared the main message reader window, thereby preventing crashes when the still visible parts (message body and mime parts) of a mail that is gone from the outbox are accessed. I've fixed this by explicitly clearing the view in clearCache. Since I assume clearCache is there to prevent still running timers from accessing messages which are no longer there, that seems like a decent fix. I'd like a second opinion on this, though. CCMAIL: 48686-done@bugs.kde.org M +1 -0 kmreaderwin.cpp 1.662 --- kdepim/kmail/kmreaderwin.cpp #1.661:1.662 @@ -1061,4 +1061,5 @@ void KMReaderWin::clearCache() return; updateReaderWinTimer.stop(); + clear(); mDelayedMarkTimer.stop(); mLastSerNum = 0; |