Commit aafe3e35 authored by Stefan Gerlach's avatar Stefan Gerlach
Browse files

Handle case when plugins have unresolved dependencies (happened on macOS)

parent 26166788
......@@ -135,6 +135,12 @@ QList<Backend*> Backend::availableBackends()
KPluginFactory* factory = KPluginLoader(loader.fileName()).factory();
Backend* backend = factory->create<Backend>(QCoreApplication::instance());
if (!backend){
qDebug() << "Error using plugin " << loader.fileName();
qDebug() << "Error message: " << loader.errorString();
return backendCache;
}
KPluginMetaData info(loader);
backend->d->name=info.name();
backend->d->comment=info.description();
......
Markdown is supported
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