Commit 535a021d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't show expiry page when we open folder setting when we show unified

folder
parent 5f0317cd
......@@ -54,7 +54,7 @@ CollectionExpiryPage::~CollectionExpiryPage()
bool CollectionExpiryPage::canHandle(const Akonadi::Collection &col) const
{
QSharedPointer<FolderSettings> fd = FolderSettings::forCollection(col, false);
return fd->canDeleteMessages() && !fd->isStructural();
return fd->canDeleteMessages() && !fd->isStructural() && !MailCommon::Util::isVirtualCollection(col);
}
void CollectionExpiryPage::init()
......
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