Commit c50ee964 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor

parent 45604077
...@@ -61,23 +61,26 @@ QVariant AccountInfoSource::data() ...@@ -61,23 +61,26 @@ QVariant AccountInfoSource::data()
//TODO add more //TODO add more
} }
QVariantList l; QVariantList l;
QVariantMap m;
if (numberOfImap > 0) { if (numberOfImap > 0) {
QVariantMap m;
m.insert(QStringLiteral("name"), QStringLiteral("imap")); m.insert(QStringLiteral("name"), QStringLiteral("imap"));
m.insert(QStringLiteral("number"), numberOfImap); m.insert(QStringLiteral("number"), numberOfImap);
l.push_back(m); l.push_back(m);
} }
if (numberOfPop3 > 0) { if (numberOfPop3 > 0) {
QVariantMap m;
m.insert(QStringLiteral("name"), QStringLiteral("pop3")); m.insert(QStringLiteral("name"), QStringLiteral("pop3"));
m.insert(QStringLiteral("number"), numberOfPop3); m.insert(QStringLiteral("number"), numberOfPop3);
l.push_back(m); l.push_back(m);
} }
if (numberOfKolab > 0) { if (numberOfKolab > 0) {
QVariantMap m;
m.insert(QStringLiteral("name"), QStringLiteral("kolab")); m.insert(QStringLiteral("name"), QStringLiteral("kolab"));
m.insert(QStringLiteral("number"), numberOfKolab); m.insert(QStringLiteral("number"), numberOfKolab);
l.push_back(m); l.push_back(m);
} }
if (numberOfEws > 0) { if (numberOfEws > 0) {
QVariantMap m;
m.insert(QStringLiteral("name"), QStringLiteral("ews")); m.insert(QStringLiteral("name"), QStringLiteral("ews"));
m.insert(QStringLiteral("number"), numberOfEws); m.insert(QStringLiteral("number"), numberOfEws);
l.push_back(m); l.push_back(m);
......
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