diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-16 10:02:05 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-16 10:02:05 +0100 |
commit | 8f17873f9fc8139f8c0ddcb448496b2fefbc59b1 (patch) | |
tree | ae927ce782ca75f729aa19bb108441415a58a945 /common/resource.cpp | |
parent | ef22e6ff590bca4f5e822c5a9e466c9c68d8b897 (diff) | |
download | sink-8f17873f9fc8139f8c0ddcb448496b2fefbc59b1.tar.gz sink-8f17873f9fc8139f8c0ddcb448496b2fefbc59b1.zip |
go into the correct subdir
this will allow us to have different plugin types in future with
nicer separation of the libraries from each other (faster scan times,
less chance of name collision, etc)
Diffstat (limited to 'common/resource.cpp')
-rw-r--r-- | common/resource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/resource.cpp b/common/resource.cpp index 62c521d..270b7f4 100644 --- a/common/resource.cpp +++ b/common/resource.cpp | |||
@@ -69,7 +69,10 @@ ResourceFactory *ResourceFactory::load(const QString &resourceName) | |||
69 | for (auto const &path: QCoreApplication::instance()->libraryPaths()) { | 69 | for (auto const &path: QCoreApplication::instance()->libraryPaths()) { |
70 | if (path.endsWith(QLatin1String("plugins"))) { | 70 | if (path.endsWith(QLatin1String("plugins"))) { |
71 | QDir pluginDir(path); | 71 | QDir pluginDir(path); |
72 | //TODO: centralize this so that it is easy to change centrally | ||
73 | // also ref'd in cmake as ${AKONADI_RESOURCE_PLUGINS_PATH} | ||
72 | pluginDir.cd(QStringLiteral("akonadi2")); | 74 | pluginDir.cd(QStringLiteral("akonadi2")); |
75 | pluginDir.cd(QStringLiteral("resources")); | ||
73 | 76 | ||
74 | for (const QString &fileName: pluginDir.entryList(QDir::Files)) { | 77 | for (const QString &fileName: pluginDir.entryList(QDir::Files)) { |
75 | const QString path = pluginDir.absoluteFilePath(fileName); | 78 | const QString path = pluginDir.absoluteFilePath(fileName); |