Commit 1c2b555e authored by Damien Caliste's avatar Damien Caliste Committed by Allen Winter

Always store X-KDE-VOLATILE-XXX properties as volatile.

When setting custom a property with CustomProperties::setNonKDECustomProperty,
save properties starting with X-KDE-VOLATILE- into the mVolatileProperties
member. This is symetrical with removeNonKDECustomProperty().
parent 0d492628
......@@ -147,8 +147,12 @@ void CustomProperties::setNonKDECustomProperty(const QByteArray &name, const QSt
return;
}
customPropertyUpdate();
d->mProperties[name] = value;
d->mPropertyParameters[name] = parameters;
if (d->isVolatileProperty(QLatin1String(name))) {
d->mVolatileProperties[name] = value;
} else {
d->mProperties[name] = value;
d->mPropertyParameters[name] = parameters;
}
customPropertyUpdated();
}
void CustomProperties::removeNonKDECustomProperty(const QByteArray &name)
......
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