Commit fb807825 authored by Daniel Teske's avatar Daniel Teske Committed by Eike Ziller
Browse files

Reduce the directories plugins are searched in

Don't search in the mac directories on linux/unix and vice versa.
Orginal patch by Ray Donnelly <> on the android

Change-Id: I57a4d83a94f28bbe00609fd1b9170629da27334e

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarEike Ziller <>
parent 56bf6842
......@@ -160,6 +160,7 @@ static inline QStringList getPluginPaths()
QDir rootDir = QApplication::applicationDirPath();
const QString rootDirPath = rootDir.canonicalPath();
#if !defined(Q_OS_MAC)
// 1) "plugins" (Win/Linux)
QString pluginPath = rootDirPath;
pluginPath += QLatin1Char('/');
......@@ -169,11 +170,13 @@ static inline QStringList getPluginPaths()
pluginPath += QLatin1Char('/');
pluginPath += QLatin1String("plugins");
// 2) "PlugIns" (OS X)
pluginPath = rootDirPath;
QString pluginPath = rootDirPath;
pluginPath += QLatin1Char('/');
pluginPath += QLatin1String("PlugIns");
return rc;
Supports Markdown
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