diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-04-01 11:53:02 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-04-01 11:53:02 (GMT) |
commit | ab56759cefbcf2072ac777f0d897e561f5a3c8af (patch) | |
tree | 7bcbd921e16ce4f43a7e2a2fbe291a7a3a4cf689 | |
parent | 7ff89f9ee6d7c11a42300299cb699185dc020379 (diff) | |
download | Qt-ab56759cefbcf2072ac777f0d897e561f5a3c8af.zip Qt-ab56759cefbcf2072ac777f0d897e561f5a3c8af.tar.gz Qt-ab56759cefbcf2072ac777f0d897e561f5a3c8af.tar.bz2 |
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
-rw-r--r-- | tools/checksdk/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/checksdk/main.cpp b/tools/checksdk/main.cpp index 1d4b616..717f5c9 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()) { |