From 4d70a52d27003a9e34e78e445e93f4d7da5ea074 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@digia.com>
Date: Wed, 12 Mar 2014 17:55:53 +0100
Subject: [PATCH] SDKtool: Fix get operation

Sometimes I think nobody ever uses the sdktool:-/

Change-Id: I91d1e21db982e802394d30fbdd75ab0f6b3a0961
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
---
 src/tools/sdktool/getoperation.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/tools/sdktool/getoperation.cpp b/src/tools/sdktool/getoperation.cpp
index 1899cefa1ce..2beb77f9e52 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;
-- 
GitLab