Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -69,9 +69,10 @@ int GetOperation::execute() const ...@@ -69,9 +69,10 @@ int GetOperation::execute() const
foreach (const QString &key, m_keys) { foreach (const QString &key, m_keys) {
const QVariant result = get(map, key); const QVariant result = get(map, key);
if (result.isValid()) if (!result.isValid())
return 2; std::cout << "<invalid>" << std::endl;
std::cout << qPrintable(result.toString()) << std::endl; else
std::cout << qPrintable(result.toString()) << std::endl;
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment