summaryrefslogtreecommitdiffstats
path: root/common/store.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-15 19:13:21 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-15 19:13:21 +0100
commit2d34c336ee253ab63bb892dde25ce0742068ef5c (patch)
tree1d24339286bdad5cad8d0efaecf96a4cd774657b /common/store.cpp
parentb576f6b17e17083257763d5bcb6bf2b64dd200c3 (diff)
downloadsink-2d34c336ee253ab63bb892dde25ce0742068ef5c.tar.gz
sink-2d34c336ee253ab63bb892dde25ce0742068ef5c.zip
Fixed accounts support
Diffstat (limited to 'common/store.cpp')
-rw-r--r--common/store.cpp5
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
48static QList<QByteArray> getResources(const QList<QByteArray> &resourceFilter, const QByteArray &type = QByteArray()) 48static 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);
252REGISTER_TYPE(ApplicationDomain::Mail); 252REGISTER_TYPE(ApplicationDomain::Mail);
253REGISTER_TYPE(ApplicationDomain::Folder); 253REGISTER_TYPE(ApplicationDomain::Folder);
254REGISTER_TYPE(ApplicationDomain::SinkResource); 254REGISTER_TYPE(ApplicationDomain::SinkResource);
255REGISTER_TYPE(ApplicationDomain::SinkAccount);
255 256
256} // namespace Sink 257} // namespace Sink