Commit 4d70a52d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

SDKtool: Fix get operation



Sometimes I think nobody ever uses the sdktool:-/

Change-Id: I91d1e21db982e802394d30fbdd75ab0f6b3a0961
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 84be7bdb
......@@ -69,9 +69,10 @@ int GetOperation::execute() const
foreach (const QString &key, m_keys) {
const QVariant result = get(map, key);
if (result.isValid())
return 2;
std::cout << qPrintable(result.toString()) << std::endl;
if (!result.isValid())
std::cout << "<invalid>" << std::endl;
else
std::cout << qPrintable(result.toString()) << std::endl;
}
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment