Fix potential crash

wilder-work
Montel Laurent 14 years ago
parent 1877890ae9
commit 8ef83e603d
  1. 14
      kmmainwidget.cpp

@ -3026,15 +3026,13 @@ void KMMainWidget::slotDelayedMessagePopup( KJob *job )
menu->addAction( mMsgActions->messageStatusMenu() );
menu->addSeparator();
if(!iUrl.isEmpty()) {
menu->addSeparator();
menu->addAction( mMsgView->copyImageLocation());
menu->addAction( mMsgView->downloadImageToDiskAction());
menu->addSeparator();
}
if ( mMsgView ) {
if (!iUrl.isEmpty()) {
menu->addSeparator();
menu->addAction( mMsgView->copyImageLocation());
menu->addAction( mMsgView->downloadImageToDiskAction());
menu->addSeparator();
}
menu->addAction( mMsgView->viewSourceAction() );
menu->addAction( mMsgView->toggleFixFontAction() );
menu->addAction( mMsgView->toggleMimePartTreeAction() );

Loading…
Cancel
Save