Commit d300c2fc authored by Alexander Semke's avatar Alexander Semke
Browse files

When using KSharedConfig, specify explicitely 'cantrorc' so we also propely...

When using KSharedConfig, specify explicitely 'cantrorc' so we also propely read the documentation settings in LabPlot.
parent 11dd741d
......@@ -295,7 +295,7 @@ QTreeWidgetItem* QtHelpConfig::addTableItem(const QString& icon, const QString&
void QtHelpConfig::loadSettings()
// load settings for current backend and then update the QTreeWidget
const auto& group = KSharedConfig::openConfig()->group(m_backend);
const auto& group = KSharedConfig::openConfig(QStringLiteral("cantorrc"))->group(m_backend);
const auto& nameList = group.readEntry(QLatin1String("Names"), QStringList());
const auto& pathList = group.readEntry(QLatin1String("Paths"), QStringList());
......@@ -232,11 +232,12 @@ void DocumentationPanelWidget::updateBackend(const QString& newBackend)
m_backend = newBackend;
m_initializing = true;
// show all available documentation files for the new backend
const KConfigGroup& group = KSharedConfig::openConfig()->group(m_backend.toLower());
const KConfigGroup& group = KSharedConfig::openConfig(QStringLiteral("cantorrc"))->group(m_backend.toLower());
m_docNames = group.readEntry(QLatin1String("Names"), QStringList());
m_docPaths = group.readEntry(QLatin1String("Paths"), QStringList());
const QStringList& iconNames = group.readEntry(QLatin1String("Icons"), QStringList());
Markdown is supported
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