Git commit 22990bb613fe4d151a9d248d642284d043c29b2e by Jaroslaw Staniek. Committed on 31/08/2016 at 23:38. Pushed by staniek into branch 'master'. Use KDb::libraryPaths() in KDbJsonTrader M +2 -11 src/tools/KDbJsonTrader_p.cpp http://commits.kde.org/kdb/22990bb613fe4d151a9d248d642284d043c29b2e diff --git a/src/tools/KDbJsonTrader_p.cpp b/src/tools/KDbJsonTrader_p.cpp index 3dc957e..646edc9 100644 --- a/src/tools/KDbJsonTrader_p.cpp +++ b/src/tools/KDbJsonTrader_p.cpp @@ -20,7 +20,7 @@ */ = #include "KDbJsonTrader_p.h" -#include "KDbGlobal.h" +#include "KDb.h" #include "kdb_debug.h" = #include @@ -111,16 +111,7 @@ QList KDbJsonTrader::query(const QStr= ing &servicetype, const QString &mimetype) { if (!d->pluginPathFound) { - QStringList searchDirs; - searchDirs +=3D QCoreApplication::libraryPaths(); - foreach(const QString &dir, searchDirs) { - //kdbDebug() << dir; - QString possiblePath =3D dir + QLatin1String("/kdb"); - if (QDir(possiblePath).exists()) { - d->pluginPaths +=3D possiblePath; - } - } - d->pluginPathFound =3D true; + d->pluginPaths =3D KDb::libraryPaths(); } = QList list;