Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Pim
Commits
58f13aa8
Commit
58f13aa8
authored
Dec 28, 2012
by
Laurent Montel
😁
Browse files
Fix Bug 311994 - IMAP quota isn't displayed in some cases
FIXED-IN: 4.10 BUG: 311994
parent
5b85c5c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmail/collectionquotapage.cpp
View file @
58f13aa8
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment