diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp index 1c1ed7a61..4eda1357d 100644 --- a/src/kmmainwidget.cpp +++ b/src/kmmainwidget.cpp @@ -2317,6 +2317,9 @@ void KMMainWidget::slotSaveAttachments() if (selectedMessages.isEmpty()) { return; } + if (!mMsgView) { + return; + } // Avoid re-downloading in the common case that only one message is selected, and the message // is also displayed in the viewer. For this, create a dummy item without a parent collection / item id, // so that KMCommand doesn't download it.