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