Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinrules/ruleslist.cpp
Context not available. | |||||
167 | if (path.isEmpty()) | 167 | if (path.isEmpty()) | ||
---|---|---|---|---|---|
168 | return; | 168 | return; | ||
169 | KConfig config(path, KConfig::SimpleConfig); | 169 | KConfig config(path, KConfig::SimpleConfig); | ||
170 | QStringList groups = config.groupList(); | 170 | const QStringList groups = config.groupList(); | ||
171 | if (groups.isEmpty()) | 171 | if (groups.isEmpty()) | ||
172 | return; | 172 | return; | ||
173 | 173 | | |||
174 | int pos = qMax(0, rules_listbox->currentRow()); | 174 | int pos = qMax(0, rules_listbox->currentRow()); | ||
175 | foreach (const QString &group, groups) { | 175 | for (const QString &group : groups) { | ||
176 | KConfigGroup grp(&config, group); | 176 | KConfigGroup grp(&config, group); | ||
177 | const bool remove = grp.readEntry("DeleteRule", false); | 177 | const bool remove = grp.readEntry("DeleteRule", false); | ||
178 | Rules* new_rule = new Rules(grp); | 178 | Rules* new_rule = new Rules(grp); | ||
Context not available. |