[kcmkwin/kwinrules] Don't include kdeglobals in rules config
Summary: There's nothing relevant in kdeglobals and loading it can lead to noise when deleting groups that override a system default. We still cascade which will allow kiosk keys to work as well as relevant system defaults. Import/Export is unchanged as that already uses SimpleConfig which includes this flag. I don't know if it will fix the relevant issue in the bug or just reduce noise. CCBUG: 402139 Test Plan: Compiled. Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17645
This commit is contained in:
parent
b07ba3baa3
commit
f3060723e1
3 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ int main( int argc, char* argv[] )
|
|||
return 1;
|
||||
}
|
||||
KConfig src_cfg( file );
|
||||
KConfig dest_cfg( "kwinrulesrc" );
|
||||
KConfig dest_cfg("kwinrulesrc", KConfig::NoGlobals);
|
||||
KConfigGroup scg(&src_cfg, "General");
|
||||
KConfigGroup dcg(&dest_cfg, "General");
|
||||
int count = scg.readEntry( "count", 0 );
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace KWin
|
|||
|
||||
KCMRules::KCMRules(QWidget *parent, const QVariantList &)
|
||||
: KCModule(parent)
|
||||
, config("kwinrulesrc")
|
||||
, config("kwinrulesrc", KConfig::NoGlobals)
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
layout->setMargin(0);
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace KWin
|
|||
|
||||
static void loadRules(QList< Rules* >& rules)
|
||||
{
|
||||
KConfig _cfg("kwinrulesrc");
|
||||
KConfig _cfg("kwinrulesrc", KConfig::NoGlobals);
|
||||
KConfigGroup cfg(&_cfg, "General");
|
||||
int count = cfg.readEntry("count", 0);
|
||||
for (int i = 1;
|
||||
|
@ -50,7 +50,7 @@ static void loadRules(QList< Rules* >& rules)
|
|||
|
||||
static void saveRules(const QList< Rules* >& rules)
|
||||
{
|
||||
KConfig cfg("kwinrulesrc");
|
||||
KConfig cfg("kwinrulesrc", KConfig::NoGlobals);
|
||||
QStringList groups = cfg.groupList();
|
||||
for (QStringList::ConstIterator it = groups.constBegin();
|
||||
it != groups.constEnd();
|
||||
|
|
Loading…
Reference in a new issue