summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-09 06:54:47 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-09 06:54:47 (GMT)
commit89606b5444305e1e64d65d390a90dd2836c5580d (patch)
tree8d15b92f1c1573bdce48f5e27e5fa03dd03c43c5
parent1178d0142e79c1adebb6ee29cb147c7f1dd83153 (diff)
Minor
-rw-r--r--src/genericplugins/genericpluginmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/genericplugins/genericpluginmanager.cpp b/src/genericplugins/genericpluginmanager.cpp
index a82921a..9add81f 100644
--- a/src/genericplugins/genericpluginmanager.cpp
+++ b/src/genericplugins/genericpluginmanager.cpp
@@ -113,12 +113,13 @@ QString GenericPluginManagerPrivate::configPrefixSettingKey() const
bool GenericPluginManagerPrivate::initializePlugins()
{
- if (serviceTypeName.isEmpty() || pluginName.isEmpty()) {
- return false;
- }
if (!mPluginList.isEmpty()) {
return true;
}
+
+ if (serviceTypeName.isEmpty() || pluginName.isEmpty()) {
+ return false;
+ }
static const QString s_serviceTypeName = serviceTypeName;
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(pluginName, [](const KPluginMetaData & md) {
return md.serviceTypes().contains(s_serviceTypeName);