forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
6c928b3305
commit
4bb73adad6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user