Clear keys in assignment operator of composite key.

Fixes corruption of key if master key and then transform rounds is changed.
This commit is contained in:
Florian Geyer 2012-04-21 18:09:14 +02:00 committed by Felix Geyer
parent 4e2407b3ba
commit db52267400

View File

@ -49,6 +49,8 @@ CompositeKey* CompositeKey::clone() const
CompositeKey& CompositeKey::operator=(const CompositeKey& key)
{
clear();
Q_FOREACH (Key* subKey, key.m_keys) {
m_keys.append(subKey->clone());
}