sdktool: Add operations: Fix adding to a empty map, check the right map

Change-Id: Iddcf85d3a19bed28baa9bd4c5f964c370f8c9c42
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2013-05-16 15:47:47 +02:00
committed by Tobias Hunger
parent 6c928b3305
commit 4bb73adad6
5 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ int AddKeysOperation::execute() const
QVariantMap map = load(m_file);
QVariantMap result = addKeys(map, m_data);
if (map.isEmpty() || map == result)
if (result.isEmpty() || map == result)
return -4;
// Write data again: