summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/sdktool/getoperation.cpp7
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;