mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kwin: use the description as ID for rules when none is set
because rules created by the configuration interface do not have an ID and one must be set for duplicates to be filtered correctly, ideally the whole rule should be checked for equality instead of the ID only (the ID should not be a thing, it is not used for other purpose really) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9194097ab6
commit
8c8246d810
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ void Rules::readFromCfg(const KConfigGroup& cfg)
|
|||
|
||||
void Rules::write(KConfigGroup& cfg) const
|
||||
{
|
||||
cfg.writeEntry("id", ruleid);
|
||||
cfg.writeEntry("id", ruleid.isEmpty() ? QByteArray::number(qHash(description)) : ruleid);
|
||||
cfg.writeEntry("Description", description);
|
||||
// always write wmclass
|
||||
WRITE_MATCH_STRING(wmclass, (const char*), true);
|
||||
|
|
Loading…
Add table
Reference in a new issue