Commit 90c85c58 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to fix Bug 311994 - IMAP quota isn't displayed in some cases

Fix when it's overquota
BUG: 311994
parent 243349c7
......@@ -70,7 +70,8 @@ void CollectionQuotaPage::load( const Akonadi::Collection & col )
if ( col.hasAttribute<Akonadi::CollectionQuotaAttribute>() ) {
const qint64 currentValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->currentValue();
const qint64 maximumValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->maximumValue();
mQuotaWidget->setQuotaInfo( currentValue, maximumValue );
//Test over quota.
mQuotaWidget->setQuotaInfo( qMin(currentValue,maximumValue), maximumValue );
}
}
......
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