Commit 54c0ed79 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix warning about variable type

parent 63e9a8cf
Pipeline #73269 passed with stage
in 3 minutes and 58 seconds
......@@ -354,20 +354,24 @@ void MainWindow::loadPlugins()
const QString libNameProp = pluginMetaData.value(QStringLiteral("X-KDE-KontactPartLibraryName"));
const QString exeNameProp = pluginMetaData.value(QStringLiteral("X-KDE-KontactPartExecutableName"));
const QString loadOnStart = pluginMetaData.value(QStringLiteral("X-KDE-KontactPartLoadOnStart"));
const QString hasPartProp = pluginMetaData.value(QStringLiteral("X-KDE-KontactPluginHasPart"));
if (!loadOnStart.isEmpty() && loadOnStart == QLatin1String("true")) {
mDelayedPreload.append(plugin);
if (pluginMetaData.rawData().contains(QLatin1String("X-KDE-KontactPartLoadOnStart"))) {
bool loadOnStart = pluginMetaData.rawData().value(QStringLiteral("X-KDE-KontactPartLoadOnStart")).toBool();
if (loadOnStart) {
mDelayedPreload.append(plugin);
}
}
if (pluginMetaData.rawData().contains(QLatin1String("X-KDE-KontactPluginHasPart"))) {
const bool hasPartProp = pluginMetaData.rawData().value(QStringLiteral("X-KDE-KontactPluginHasPart")).toBool();
plugin->setShowInSideBar(hasPartProp);
} else {
plugin->setShowInSideBar(true);
}
qCDebug(KONTACT_LOG) << "LIBNAMEPART:" << libNameProp;
plugin->setPartLibraryName(libNameProp.toUtf8());
plugin->setExecutableName(exeNameProp);
if (!hasPartProp.isEmpty()) {
plugin->setShowInSideBar(hasPartProp == QLatin1String("true"));
}
plugins.append(plugin);
}
std::sort(plugins.begin(), plugins.end(), pluginWeightLessThan); // new plugins
......
Supports Markdown
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