[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kwin/Plasma/5.13] /: Reparse rules config prior to update
From: Martin_Flöser <null () kde ! org>
Date: 2018-05-20 13:43:39
Message-ID: E1fKOcd-0006jp-4C () code ! kde ! org
[Download RAW message or body]
Git commit bed31e0557854bb92425db1eab73022c41f2c793 by Martin Flöser.
Committed on 20/05/2018 at 13:43.
Pushed by graesslin into branch 'Plasma/5.13'.
Reparse rules config prior to update
Summary:
We used to recreate the KConfig when rules needed to update. Now that it
is a KSharedConfig, which is kept, it needs to be reparsed as it changes
outside of KWin.
BUG: 393788
FIXED-IN: 5.13.0
Test Plan: Restarted session, changing rules work again
Reviewers: #kwin, #plasma
Subscribers: kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D12706
M +2 -0 rules.cpp
https://commits.kde.org/kwin/bed31e0557854bb92425db1eab73022c41f2c793
diff --git a/rules.cpp b/rules.cpp
index a6060cd84..32b389dd7 100644
--- a/rules.cpp
+++ b/rules.cpp
@@ -1064,6 +1064,8 @@ void RuleBook::load()
deleteAll();
if (!m_config) {
m_config = KSharedConfig::openConfig(QStringLiteral(KWIN_NAME "rulesrc"), KConfig::NoGlobals);
+ } else {
+ m_config->reparseConfiguration();
}
int count = m_config->group("General").readEntry("count", 0);
for (int i = 1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic