diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-03-12 17:55:53 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-03-12 17:56:58 +0100 |
commit | 4d70a52d27003a9e34e78e445e93f4d7da5ea074 (patch) | |
tree | f5ee3c7902154e95cf6f97b459a046254e72ae07 /src/tools/sdktool | |
parent | 84be7bdbe299dc01aef01630487e7ba309394806 (diff) | |
download | qt-creator-4d70a52d27003a9e34e78e445e93f4d7da5ea074.tar.gz |
SDKtool: Fix get operation
Sometimes I think nobody ever uses the sdktool:-/
Change-Id: I91d1e21db982e802394d30fbdd75ab0f6b3a0961
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/tools/sdktool')
-rw-r--r-- | src/tools/sdktool/getoperation.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/sdktool/getoperation.cpp b/src/tools/sdktool/getoperation.cpp index 1899cefa1c..2beb77f9e5 100644 --- a/src/tools/sdktool/getoperation.cpp +++ b/src/tools/sdktool/getoperation.cpp @@ -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; |