Commit 4ca26462 authored by Laurent Montel's avatar Laurent Montel 😁

Minor fix

parent d94fe80c
......@@ -1529,7 +1529,7 @@ void KMMainWidget::slotRemoveFolder()
if (!mCurrentFolderSettings) {
return;
}
if (!mCurrentCollection.isValid()) {
if (!mCurrentFolderSettings->isValid()) {
return;
}
if (mCurrentFolderSettings->isSystemFolder()) {
......@@ -3823,7 +3823,7 @@ void KMMainWidget::updateMessageActionsDelayed()
actionList << messageActions()->editAction();
}
actionList << mSaveAttachmentsAction;
if (mCurrentFolderSettings && FolderArchive::FolderArchiveUtil::resourceSupportArchiving(mCurrentCollection.resource())) {
if (mCurrentCollection.isValid() && FolderArchive::FolderArchiveUtil::resourceSupportArchiving(mCurrentCollection.resource())) {
actionList << mArchiveAction;
}
mGUIClient->unplugActionList(QStringLiteral("messagelist_actionlist"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment