diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2019-04-21 23:46:48 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-21 23:46:48 +0900 |
commit | e53303b9298bc47bd864caea6725ff09c5c6e6bb (patch) | |
tree | 1e977a598d0ff22b61e8c954f994be2f32dcc572 /kmail | |
parent | 4d223dc2195a80f8f5bfa67dd9c050f36421500c (diff) | |
download | tdepim-e53303b9298bc47bd864caea6725ff09c5c6e6bb.tar.gz tdepim-e53303b9298bc47bd864caea6725ff09c5c6e6bb.zip |
Bugfix: KMail: Detach from message observation when destructing KMReaderWin
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
Diffstat (limited to 'kmail')
-rw-r--r-- | kmail/kmreaderwin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp index 6c5acd10c..b3c435703 100644 --- a/kmail/kmreaderwin.cpp +++ b/kmail/kmreaderwin.cpp @@ -780,6 +780,9 @@ void KMReaderWin::slotCycleAttachmentStrategy() { //----------------------------------------------------------------------------- KMReaderWin::~KMReaderWin() { + if (message()) { + message()->detach( this ); + } clearBodyPartMementos(); delete mHtmlWriter; mHtmlWriter = 0; delete mCSSHelper; |