Commit 9582a455 authored by Benjamin Port's avatar Benjamin Port Committed by Benjamin Port

Save highlight default state

BUG: 427806
parent 432a478c
......@@ -31,6 +31,7 @@
#include <QAction>
#include <KAboutData>
#include <KConfigGroup>
#include <KCModuleInfo>
#include <KDescendantsProxyModel>
#include <KStandardAction>
......@@ -282,6 +283,7 @@ SidebarMode::SidebarMode( QObject *parent, const QVariantList &args )
SidebarMode::~SidebarMode()
{
config().sync();
delete d;
}
......@@ -370,6 +372,10 @@ void SidebarMode::initEvent()
d->moduleView->setDefaultsVisible(false);
d->moduleView->setResetVisible(false);
}
if (config().readEntry("HighlightNonDefaultSettings", false)) {
toggleDefaultsIndicatorsVisibility();
}
}
QAction *SidebarMode::action(const QString &name) const
......@@ -680,6 +686,7 @@ void SidebarMode::toggleDefaultsIndicatorsVisibility()
}
}
}
config().writeEntry("HighlightNonDefaultSettings", d->m_defaultsIndicatorsVisible);
emit defaultsIndicatorsVisibleChanged();
}
......
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