Commit ebf643f2 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Merge branch 'Applications/16.04'

parents 8e43e01a 2272b07d
......@@ -108,8 +108,11 @@ void ShortUrlEnginePluginManagerPrivate::initializePlugins()
void ShortUrlEnginePluginManagerPrivate::loadPlugin(ShortUrlEnginePluginInfo *item)
{
item->plugin = KPluginLoader(item->metaData.fileName()).factory()->create<ShortUrlEnginePlugin>(q, QVariantList() << item->saveName());
item->plugin->setPluginName(item->metaData.name());
KPluginLoader pluginLoader(item->metaData.fileName());
if (pluginLoader.factory()) {
item->plugin = pluginLoader.factory()->create<ShortUrlEnginePlugin>(q, QVariantList() << item->saveName());
item->plugin->setPluginName(item->metaData.name());
}
}
QVector<ShortUrlEnginePlugin *> ShortUrlEnginePluginManagerPrivate::pluginsList() const
......
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