Commit 0e5aef10 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 67cc44bd
...@@ -295,7 +295,7 @@ QTreeWidgetItem* QtHelpConfig::addTableItem(const QString& icon, const QString& ...@@ -295,7 +295,7 @@ QTreeWidgetItem* QtHelpConfig::addTableItem(const QString& icon, const QString&
void QtHelpConfig::loadSettings() void QtHelpConfig::loadSettings()
{ {
// load settings for current backend and then update the QTreeWidget // 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& nameList = group.readEntry(QLatin1String("Names"), QStringList());
const auto& pathList = group.readEntry(QLatin1String("Paths"), QStringList()); const auto& pathList = group.readEntry(QLatin1String("Paths"), QStringList());
......
...@@ -232,11 +232,12 @@ void DocumentationPanelWidget::updateBackend(const QString& newBackend) ...@@ -232,11 +232,12 @@ void DocumentationPanelWidget::updateBackend(const QString& newBackend)
return; return;
m_backend = newBackend; m_backend = newBackend;
m_initializing = true; m_initializing = true;
// show all available documentation files for the new backend // show all available documentation files for the new backend
m_documentationSelector->clear(); m_documentationSelector->clear();
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_docNames = group.readEntry(QLatin1String("Names"), QStringList());
m_docPaths = group.readEntry(QLatin1String("Paths"), QStringList()); m_docPaths = group.readEntry(QLatin1String("Paths"), QStringList());
const QStringList& iconNames = group.readEntry(QLatin1String("Icons"), QStringList()); const QStringList& iconNames = group.readEntry(QLatin1String("Icons"), QStringList());
......
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