forked from openkylin/ukui-search
修复了一个愚蠢的错误。
This commit is contained in:
parent
4e3a9d93c6
commit
fb7852e8fe
|
@ -30,17 +30,12 @@ PluginManager::PluginManager(QObject *parent) : QObject(parent)
|
|||
|
||||
Q_FOREACH(QString fileName, pluginsDir.entryList(QDir::Files)) {
|
||||
QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
|
||||
if(pluginLoader.isLoaded()) {
|
||||
// version check
|
||||
QString version = pluginLoader.metaData().value("MetaData").toObject().value("version").toString();
|
||||
if (version != VERSION) {
|
||||
qWarning() << "Plugin version check failed:" << fileName << "version," << "iface version : " << VERSION;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
qWarning() << "Fail to load fileName";
|
||||
continue;
|
||||
}
|
||||
|
||||
QObject *plugin = pluginLoader.instance();
|
||||
if (!plugin)
|
||||
|
|
Loading…
Reference in New Issue