Commit ac169a09 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix load summary (identifier is the filename now...)

parent 219f10fd
Pipeline #103807 passed with stage
in 5 minutes and 55 seconds
...@@ -30,6 +30,7 @@ using PimCommon::BroadcastStatus; ...@@ -30,6 +30,7 @@ using PimCommon::BroadcastStatus;
#include <KPluginMetaData> #include <KPluginMetaData>
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QFileInfo>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QIcon> #include <QIcon>
#include <QLabel> #include <QLabel>
...@@ -123,7 +124,6 @@ void SummaryViewPart::updateWidgets() ...@@ -123,7 +124,6 @@ void SummaryViewPart::updateWidgets()
activeSummaries << QStringLiteral("kontact_kmailplugin"); activeSummaries << QStringLiteral("kontact_kmailplugin");
activeSummaries << QStringLiteral("kontact_knotesplugin"); activeSummaries << QStringLiteral("kontact_knotesplugin");
} }
// Collect all summary widgets with a summaryHeight > 0 // Collect all summary widgets with a summaryHeight > 0
QStringList loadedSummaries; QStringList loadedSummaries;
...@@ -132,10 +132,11 @@ void SummaryViewPart::updateWidgets() ...@@ -132,10 +132,11 @@ void SummaryViewPart::updateWidgets()
QList<KontactInterface::Plugin *>::ConstIterator it = plugins.constBegin(); QList<KontactInterface::Plugin *>::ConstIterator it = plugins.constBegin();
for (; it != end; ++it) { for (; it != end; ++it) {
KontactInterface::Plugin *plugin = *it; KontactInterface::Plugin *plugin = *it;
if (!activeSummaries.contains(plugin->identifier())) { QString pluginIdentifier{QFileInfo(plugin->identifier()).fileName()};
pluginIdentifier.remove(QStringLiteral(".so"));
if (!activeSummaries.contains(pluginIdentifier)) {
continue; continue;
} }
KontactInterface::Summary *summary = plugin->createSummaryWidget(mFrame); KontactInterface::Summary *summary = plugin->createSummaryWidget(mFrame);
if (summary) { if (summary) {
if (summary->summaryHeight() > 0) { if (summary->summaryHeight() > 0) {
......
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