@@ -109,10 +109,10 void PluginManager::loadPlugins(const QDir &pluginDir) | |||||
109 | auto pluginInfoList |
|
109 | auto pluginInfoList | |
110 | = pluginDir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); |
|
110 | = pluginDir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); | |
111 | for (auto entryInfo : qAsConst(pluginInfoList)) { |
|
111 | for (auto entryInfo : qAsConst(pluginInfoList)) { | |
112 | if (entryInfo.isDir()) |
|
112 | if (entryInfo.isDir()) { | |
113 | this->loadPlugins(QDir{entryInfo.absoluteFilePath()}); |
|
113 | this->loadPlugins(QDir{entryInfo.absoluteFilePath()}); | |
114 |
|
|
114 | } | |
115 |
|
|
115 | else if (QLibrary::isLibrary(entryInfo.absoluteFilePath())) { | |
116 |
|
|
116 | impl->loadPlugin(entryInfo.absoluteFilePath()); | |
117 | } |
|
117 | } | |
118 | } |
|
118 | } |
General Comments 0
You need to be logged in to leave comments.
Login now