Fix crash when we call "save attachments"

BUG: 425532
FIXED-IN: 5.15.1
wilder
Laurent Montel 6 years ago
parent 55238114c7
commit 0b8cfef8b5
  1. 3
      src/kmmainwidget.cpp

@ -2340,6 +2340,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.

Loading…
Cancel
Save