Summary: | KPluginSelector::addPlugins() says last 'config' parameter can be default, but asserts if it is | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kcmutils | Reporter: | Jonathan Marten <jjm> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kcmutils/1ae59b5f0ea4f50b7350f03fd2b1fe223f66a261 | Version Fixed In: | |
Sentry Crash Report: |
Description
Jonathan Marten
2015-09-09 10:01:47 UTC
With the patch: --- a/src/kpluginselector.cpp +++ b/src/kpluginselector.cpp @@ -317,10 +317,10 @@ void KPluginSelector::addPlugins(const QString &componentName, return; } - Q_ASSERT(config); if (!config) { config = KSharedConfig::openConfig(componentName + QStringLiteral("rc")); } + Q_ASSERT(config); KConfigGroup cfgGroup(config, "KParts Plugins"); // qDebug() << "cfgGroup = " << &cfgGroup; there is no assert, the list of plugins is shown and the configuration works. Git commit 1ae59b5f0ea4f50b7350f03fd2b1fe223f66a261 by Jonathan Marten. Committed on 21/12/2015 at 08:52. Pushed by marten into branch 'master'. KPluginSelector::addPlugins: fix assert if 'config' parameter is default REVIEW:126423 M +1 -1 src/kpluginselector.cpp http://commits.kde.org/kcmutils/1ae59b5f0ea4f50b7350f03fd2b1fe223f66a261 |