diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-15 19:13:21 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-15 19:13:21 +0100 |
commit | 2d34c336ee253ab63bb892dde25ce0742068ef5c (patch) | |
tree | 1d24339286bdad5cad8d0efaecf96a4cd774657b /common/store.cpp | |
parent | b576f6b17e17083257763d5bcb6bf2b64dd200c3 (diff) | |
download | sink-2d34c336ee253ab63bb892dde25ce0742068ef5c.tar.gz sink-2d34c336ee253ab63bb892dde25ce0742068ef5c.zip |
Fixed accounts support
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/store.cpp b/common/store.cpp index 2c1dcad..bedbc47 100644 --- a/common/store.cpp +++ b/common/store.cpp | |||
@@ -47,8 +47,8 @@ QString Store::storageLocation() | |||
47 | 47 | ||
48 | static QList<QByteArray> getResources(const QList<QByteArray> &resourceFilter, const QByteArray &type = QByteArray()) | 48 | static QList<QByteArray> getResources(const QList<QByteArray> &resourceFilter, const QByteArray &type = QByteArray()) |
49 | { | 49 | { |
50 | // Return the global resource (signified by an empty name) for types that don't eblong to a specific resource | 50 | // Return the global resource (signified by an empty name) for types that don't belong to a specific resource |
51 | if (type == "sinkresource") { | 51 | if (type == "sinkresource" || type == "sinkaccount") { |
52 | return QList<QByteArray>() << ""; | 52 | return QList<QByteArray>() << ""; |
53 | } | 53 | } |
54 | QList<QByteArray> resources; | 54 | QList<QByteArray> resources; |
@@ -252,5 +252,6 @@ REGISTER_TYPE(ApplicationDomain::Event); | |||
252 | REGISTER_TYPE(ApplicationDomain::Mail); | 252 | REGISTER_TYPE(ApplicationDomain::Mail); |
253 | REGISTER_TYPE(ApplicationDomain::Folder); | 253 | REGISTER_TYPE(ApplicationDomain::Folder); |
254 | REGISTER_TYPE(ApplicationDomain::SinkResource); | 254 | REGISTER_TYPE(ApplicationDomain::SinkResource); |
255 | REGISTER_TYPE(ApplicationDomain::SinkAccount); | ||
255 | 256 | ||
256 | } // namespace Sink | 257 | } // namespace Sink |