summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kmail/kmreaderwin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp
index 76b25715d..927a5d59d 100644
--- a/kmail/kmreaderwin.cpp
+++ b/kmail/kmreaderwin.cpp
@@ -436,6 +436,7 @@ KMReaderWin::KMReaderWin(TQWidget *aParent,
mHeaderOnlyAttachmentsAction( 0 ),
mSelectEncodingAction( 0 ),
mToggleFixFontAction( 0 ),
+ mToggleMimePartTreeAction( 0 ),
mCanStartDrag( false ),
mHtmlWriter( 0 ),
mSavedRelativePosition( 0 ),
@@ -1461,7 +1462,8 @@ void KMReaderWin::showHideMimeTree( bool isPlainTextTopLevel ) {
saveSplitterSizes( reader );
mMimePartTree->hide();
}
- if ( mToggleMimePartTreeAction->isChecked() != mMimePartTree->isVisible() ) {
+ // mToggleMimePartTreeAction is null in case the reader win was created without an actionCollection
+ if ( mToggleMimePartTreeAction && mToggleMimePartTreeAction->isChecked() != mMimePartTree->isVisible() ) {
mToggleMimePartTreeAction->setChecked( mMimePartTree->isVisible() );
}
}