Enforce that group/entry uuid is set when writing a database.

This commit is contained in:
Felix Geyer 2011-12-27 15:47:06 +01:00
parent 4ebcd53801
commit bce46c5ece
5 changed files with 15 additions and 0 deletions

View file

@ -29,6 +29,7 @@ Database::Database()
{
m_metadata = new Metadata(this);
setRootGroup(new Group());
rootGroup()->setUuid(Uuid::random());
m_cipher = KeePass2::CIPHER_AES;
m_compressionAlgo = CompressionGZip;