summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-12 05:45:14 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-12 05:45:14 (GMT)
commitcea6420fb92e940f34805f4dd915d9f9b10cf9f8 (patch)
treec90bc03f1e4dd28987be2599c7a3aa5880c6520b
parentce78ecf7a67ed0011d948c1be55e67835a70d974 (diff)
Fix check order
-rw-r--r--messageviewer/src/viewerplugins/viewerpluginmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/messageviewer/src/viewerplugins/viewerpluginmanager.cpp b/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
index ca75e94..052a822 100644
--- a/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
+++ b/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
@@ -112,12 +112,12 @@ QString ViewerPluginManagerPrivate::configPrefixSettingKey() const
bool ViewerPluginManagerPrivate::initializePluginList()
{
- 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;
QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(pluginName, [](const KPluginMetaData & md) {