diff --git a/src/corelib/plugin/qfactoryloader.cpp b/src/corelib/plugin/qfactoryloader.cpp index 5abd6ff719e..1c6ebdaea39 100644 --- a/src/corelib/plugin/qfactoryloader.cpp +++ b/src/corelib/plugin/qfactoryloader.cpp @@ -398,6 +398,9 @@ void QFactoryLoader::update() #ifdef QT_SHARED Q_D(QFactoryLoader); + if (!d->extraSearchPath.isEmpty()) + d->updateSinglePath(d->extraSearchPath); + const QStringList paths = QCoreApplication::libraryPaths(); for (const QString &pluginDir : paths) { #ifdef Q_OS_ANDROID @@ -405,11 +408,8 @@ void QFactoryLoader::update() #else QString path = pluginDir + d->suffix; #endif - d->updateSinglePath(path); } - if (!d->extraSearchPath.isEmpty()) - d->updateSinglePath(d->extraSearchPath); #else Q_D(QFactoryLoader); qCDebug(lcFactoryLoader) << "ignoring" << d->iid