summaryrefslogtreecommitdiffstats
path: root/tools/checksdk
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-04-01 13:53:02 +0200
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-04-01 13:53:02 +0200
commitab56759cefbcf2072ac777f0d897e561f5a3c8af (patch)
tree7bcbd921e16ce4f43a7e2a2fbe291a7a3a4cf689 /tools/checksdk
parent7ff89f9ee6d7c11a42300299cb699185dc020379 (diff)
don't display warning message when calling checksdk -list
checksdk -list now displays the list of available SDK without yielding the warning message "No SDK specified: Defaulting to ...". Reviewed-by: mauricek
Diffstat (limited to 'tools/checksdk')
-rw-r--r--tools/checksdk/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/checksdk/main.cpp b/tools/checksdk/main.cpp
index 1d4b616e84..717f5c95e9 100644
--- a/tools/checksdk/main.cpp
+++ b/tools/checksdk/main.cpp
@@ -97,12 +97,6 @@ int main(int argc, char **argv)
}
}
- // Check for SDK Name, otherwise use Windows Mobile as default
- if (sdkName.isEmpty()) {
- qWarning("No SDK specified: Defaulting to Windows Mobile 5.0 Pocket PC SDK");
- sdkName = QString::fromLatin1("Windows Mobile 5.0 Pocket PC SDK (ARMV4I)");
- }
-
CeSdkHandler handler;
if (!handler.parse()) {
qWarning("Could not find any installed SDK, aborting!");
@@ -118,6 +112,12 @@ int main(int argc, char **argv)
return 0;
}
+ // Check for SDK Name, otherwise use Windows Mobile as default
+ if (sdkName.isEmpty()) {
+ qWarning("No SDK specified: Defaulting to Windows Mobile 5.0 Pocket PC SDK");
+ sdkName = QString::fromLatin1("Windows Mobile 5.0 Pocket PC SDK (ARMV4I)");
+ }
+
// finally find the given SDK and prompt out the environment to be set
for (QList<CeSdkInfo>::iterator it = list.begin(); it != list.end(); ++it ) {
if (sdkName == it->name()) {