diff --git a/src/keys/CompositeKey.cpp b/src/keys/CompositeKey.cpp index a0b10d542..30077e55e 100644 --- a/src/keys/CompositeKey.cpp +++ b/src/keys/CompositeKey.cpp @@ -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()); }