Commit 58f13aa8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 311994 - IMAP quota isn't displayed in some cases

FIXED-IN: 4.10
BUG: 311994
parent 5b85c5c7
......@@ -68,8 +68,9 @@ void CollectionQuotaPage::init()
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();
const qint64 currentValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->currentValue()/1024;
const qint64 maximumValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->maximumValue()/1024;
//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